OPEN-SOURCE SCRIPT
Updated Relative Strength (Mansfield RS)

This version of the Mansfield Relative Strength Indicator uses the unflattened version of the indicator recommended on the Stage Analysis website, as the slope angle of "Zero Line" (52 week MA of the stock / S&P 500) gives additional useful information that can't be seen on the traditional flattened version of the Mansfield Relative Strength Indicator.
Release Notes
Added an input so that the symbol used can be changed in the settings from the default S&P 500 symbolRelease Notes
Upgraded to PineScript v5 and multiplied by 100 to correct the data point.Release Notes
Added: overlay=falseRelease Notes
New titleRelease Notes
Changed: Added the ability to change the index or stock to be compared agains and the length of the MARelease Notes
Changed: MA length input name updatedOpen-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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.