OPEN-SOURCE SCRIPT
Relative Strength Daily/Weekly

This script measures and plots the movement of the current ticker against a reference ticker. It can be used on any timeframe, however the default values are designed around the Daily timeframe.
The columns show the relative strength or weakness of the current ticker against the reference for the single candle it lies under.
If the current ticker is showing relative strength on any particular day, the column will be either green or blue. The default colour is light green but if the ticker is showing more relative strength than the previous day, the column will be dark green. The column will be blue when the ticker is showing the highest level of relative strength when compared to the previous 21 candles.
If the ticker is showing relative weakness on any particular day, the column will either be red or orange. The default colour is light red but if the ticker is showing more relative weakness than the previous day, the column will be dark red. The column will be orange when the ticker is showing the highest level of relative weakness when compared to the previous 21 candles.
Relative strength is calculated by ((close - previous close)/previous close) - ((reference close - previous reference close)/previous reference close) * 1000
The multiplication by 1000 is simply to help the plot be more useful visually.
The line plots the same calculation but compares the current closes against their respective closes 21 candles earlier.
If the the current ticker is showing relative strength when referenced against the closes 5 bars earlier and when referenced against the closes 21 bars earlier, the background will shade green. If the current ticker shows relative weakness across those same conditions, the background will shade red.
The columns show the relative strength or weakness of the current ticker against the reference for the single candle it lies under.
If the current ticker is showing relative strength on any particular day, the column will be either green or blue. The default colour is light green but if the ticker is showing more relative strength than the previous day, the column will be dark green. The column will be blue when the ticker is showing the highest level of relative strength when compared to the previous 21 candles.
If the ticker is showing relative weakness on any particular day, the column will either be red or orange. The default colour is light red but if the ticker is showing more relative weakness than the previous day, the column will be dark red. The column will be orange when the ticker is showing the highest level of relative weakness when compared to the previous 21 candles.
Relative strength is calculated by ((close - previous close)/previous close) - ((reference close - previous reference close)/previous reference close) * 1000
The multiplication by 1000 is simply to help the plot be more useful visually.
The line plots the same calculation but compares the current closes against their respective closes 21 candles earlier.
If the the current ticker is showing relative strength when referenced against the closes 5 bars earlier and when referenced against the closes 21 bars earlier, the background will shade green. If the current ticker shows relative weakness across those same conditions, the background will shade red.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。