OPEN-SOURCE SCRIPT
Updated Comparative Relative Strength Autoselect

Comparative Relative Strength (CRS) is a relative momentum indicator, used to compare a security against an index, or against another security. The comparison is used to show the relative performance to each other.
This script is a Quality of Life improvement, which attempts to match the base symbol to its relevant index on the local stock exchange. Thus automagically selecting the best and most relevant comparative symbol.
Features:
*optional comparative symbol override, in case your favourite index is not included in this script, or you want to force it to function as as a traditional cRS script without the autoselect feature.
* optional moving average crossover line
* optional absolute momentum calculation, calculating the excess return of the basesymbol and comparativesymbol against its own simple moving average.
This script is a Quality of Life improvement, which attempts to match the base symbol to its relevant index on the local stock exchange. Thus automagically selecting the best and most relevant comparative symbol.
Features:
*optional comparative symbol override, in case your favourite index is not included in this script, or you want to force it to function as as a traditional cRS script without the autoselect feature.
* optional moving average crossover line
* optional absolute momentum calculation, calculating the excess return of the basesymbol and comparativesymbol against its own simple moving average.
Release Notes
* added a zero cross line* changed default settings
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.