Most indicator use close as their primary source which is good but side effect of it is the lag in 1-2 candles I created in the past the VPT indicator which is a volume indicator similar to OBV and I tranform it to be ised as a source insted of close . the reason for it since it a volume based indicator it faster and can help in the lag issue So this script is just example how i change the source from close and put inside the VPT which make the MACD more responsive and faster one problem of this indicator is that sometime it overshhot so with you can smooth it with len to desire result So if you have lag indicator in one or two candels you can use this trick to try to solve it
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. Você pode favoritá-lo para usá-lo em um gráfico.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.