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. اقرأ المزيد في شروط الاستخدام.