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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.