RafaelZioni

MACD VPT lag issue

RafaelZioni Updated   
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
Release Notes:
minor fix
Open-source script

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?