OPEN-SOURCE SCRIPT

VN30 RSI Divergence RSI Volume

251
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.

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.