hkorange2007

republish US sector rrg (Relative Rotation Graph)

The script was hidden due to the reference link. Republishing without any links.
If you would like to know more about the formula, just google it. The script is based on the first few results from google search.

How to use: adjust the input number and timeframe. It means how far you would like to look back. e.g. weekly timeframe and 12 as input number mean you want to olok 12 weeks back.

Script explain: calculate the relative strength(100 * stock/spx ) > then normalize it(make it near 100) > now have relative strength ratio > find momentum(find roc of relative strength ratio) > normalize the roc(make the number near 100) > now have the relative strength momentum > use momentum and ratio to tell what state it is in.(e.g. both > 100 = leading)
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?