OPEN-SOURCE SCRIPT
VN30 RSI Divergence RSI Volume

This is because TradingView now only allows publicly publishing scripts written in Pine v6 — I upgraded my script to v6 (the rest of the code is compatible, and the NA handling in v6 matches the original better than v5): Edited a file Edited a file Done — paste all the new code back into Pine Editor, click Add to chart to test compile, then Publish the script again and it should work.
I checked the syntax according to the v6 standard: the major changes in v6 (bool not recognizing NA, and/or shortcuts) do not affect this code — the divergence logic, waveforms, and alerts remain the same. If Pine Editor still reports an error on any line, please take a screenshot/copy of the error text and send it to me.
I checked the syntax according to the v6 standard: the major changes in v6 (bool not recognizing NA, and/or shortcuts) do not affect this code — the divergence logic, waveforms, and alerts remain the same. If Pine Editor still reports an error on any line, please take a screenshot/copy of the error text and send it to me.
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.
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.