dhelm

Relative Strength wrt Reference

This script evaluates the relative strength of the current symbol with respect to your chosen symbol. At the same time it gives an idea about the trend of the reference symbol.
Under default settings, it evaluates the strength with respect to NIFTY50.

While the value of the bars represents the relative strength, Colors of the bars indicate the relative strength status.
The condition action rules are as follows:
-Bar color blue implies that both the underlying and reference increased.
-Bar color green implies that the underlying increased but reference decreased.
-Bar color purple implies that both the underlying and reference decreased.
-Bar color red implies that the underlying decreased but reference increased.


On the other hand, the background colors indicate the general trend structure in the reference in terms of exponential moving averages and adx.
Green implies strong up trend.
Purple implies sideways to bullish trend.
Blue implies sideways to bearish trend
Red implies existing strong downtrend.
You can change the settings as per your choice.

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?