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. קרא עוד ב־תנאי השימוש.