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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。