OPEN-SOURCE SCRIPT
Updated MACD VPT lag issue

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
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 fixOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.