Relative Strength vs SPY - real time & multi TF analysis

One of the most requested features for TradingView is the ability to include custom indicators in the stock market scanner. While I am sure this feature is coming soon (seriously TV, PLEASE) I decided to use the amazing template provided by QuantNomad (, but I wanted to allow the user to modify the table a bit better so that a multi time frame analysis approach could be used.

The recommended way to use this indicator is to apply it three times to your chart. For each instance, assign it a plotting location (left, center, right) and choose the timeframe you wish to use for the RS analysis. By default, the relative strength of all 39 pre selected stocks will be compared against SPY , on the 5 min timeframe. I personally like having this chart on the left, then the 4 hour timeframe in the center, and the daily on the right. Not only does this setup allow you to see the relative strength /weakness of 39 stocks in real time (the one on the left), but you have all the information in front of you including how the stock has been performing relative to SPY on the 4H and D charts.

To make it easiest to read, you should disable all visual elements to the chart you are applying this indicator to. By minimizing the chart and putting it by your side, you can see the bigger picture on how all your stocks are behaving relative to the market.

If you wish to change any of the stocks I have pre selected, make sure to save your chart template. Otherwise you would need to do this every time you load the indicator to your chart which would be incredibly time consuming.

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。