OPEN-SOURCE SCRIPT
CRS by TQ

CRS by TradeQUO
Comparative Relative Strength Indicator
What it does
Key Plots
How to Interpret
Trend-Following
Regime Filter
Divergence Signals
Pairs Trading
Why it matters
Comparative Relative Strength Indicator
What it does
- Computes the percentage difference in performance between your current chart symbol (e.g. GC1!) and a chosen benchmark (e.g. ES1!, DXY, NQ1!).
- Smooths that “CRS” line with a configurable moving average (SMA, EMA, WMA) — default length is 63 bars.
Key Plots
- CRS (%) (aqua) — how your symbol has held up relative to the benchmark since the chart loaded.
- CRS MA (%) (fuchsia) — smoothed trend of that relative strength.
How to Interpret
Trend-Following
- Long when CRS crosses above its MA and is above 0 → your symbol is outperforming.
- Short (or reverse) when CRS crosses below its MA and is below 0 → underperformance.
Regime Filter
- CRS > 0 → Risk-On environment for your symbol vs. benchmark.
- CRS < 0 → Risk-Off relative to the benchmark.
Divergence Signals
- Bearish Divergence: Price makes a higher high, but CRS makes a lower high → potential sell-off incoming.
- Bullish Divergence: Price makes a lower low, but CRS makes a higher low → look for rebound opportunity.
Pairs Trading
- Outperformance: Long your symbol + Short benchmark when CRS > MA.
- Underperformance: Short your symbol + Long benchmark when CRS < MA.
Why it matters
- Reveals relative market leadership early, not just absolute price moves.
- Helps you allocate risk dynamically, spot rotations and catch reversals before they show in price alone.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.