OPEN-SOURCE SCRIPT

JSE Top 40 Comparative Relative Strength

By SteynTrade
Updated
This code adapts the code by vitvlkv to be appropriate for comparison of JSE stocks with the Top 40 index. It also includes moving averages and Bollinger Bands to identify extreme conditions. You can change the colours and deselect moving averages to make the plot less cluttered. You can also change the selection to compare the stock against to JSE:J201 if you want to compare it to the All Share Index.
Release Notes
Updated the default comparison market to JSE Top40.
Release Notes
Updated script from old version to //version=4 with associated syntax. Also, ensure any repainting is removed.
Bollinger Bands (BB)jsejsetop40
SteynTrade

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

Want to use this script on a chart?

Disclaimer