OPEN-SOURCE SCRIPT
Comparative Relative Strength (CRS) with Multi Moving Averages

This indicator calculates Comparative Relative Strength (CRS) by dividing the price of the current symbol by a user-defined benchmark (default: SPY).
It includes five configurable moving averages applied to the CRS line, each with:
- User-defined length
- Choice of SMA or EMA
- Optional visibility toggle
Default configuration:
- MA 1: 4 EMA (active)
- MA 2: 13 EMA (active)
- MA 3: 26 EMA (active)
- MA 4: 52 EMA (inactive)
- MA 5: 250 EMA (inactive)
This tool is useful for:
- Identifying relative outperformance vs the market
- Trend confirmation using multi-timeframe smoothing
- Building watchlists based on relative strength
The comparison symbol can be modified to any index, ETF, or asset.
It includes five configurable moving averages applied to the CRS line, each with:
- User-defined length
- Choice of SMA or EMA
- Optional visibility toggle
Default configuration:
- MA 1: 4 EMA (active)
- MA 2: 13 EMA (active)
- MA 3: 26 EMA (active)
- MA 4: 52 EMA (inactive)
- MA 5: 250 EMA (inactive)
This tool is useful for:
- Identifying relative outperformance vs the market
- Trend confirmation using multi-timeframe smoothing
- Building watchlists based on relative strength
The comparison symbol can be modified to any index, ETF, or asset.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。