OPEN-SOURCE SCRIPT

RS.ROC | Relative Strength - Rate of Changes - 4CR CUP

For completeness of Relative Strength studies, the Relative Strength based on rate of changes (ROC) with weighting is coded and presented as well.

The RS.ROC is similar to the formulation of RS by IBD before rank among all the stocks in the market.

The lookback period is relaxed for customizing. Once you set the total lookback period, representing the 4Q, in the indicator, the other shorter lookback periods will be auto-calculated, namely, 1Q, 2Q, 3Q.

A simple moving average of the RS.ROC is also added for your easier analysis on the trend development of the strength.


To use it later at your charting later,
1. Favorite it;
2. Select from your favorite list.
ibdRate of Change (ROC)relativestrengthRelative Strength ComparisonROCRS

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