OPEN-SOURCE SCRIPT
RS Ratio vs Benchmark (Colored)

๐ RS Ratio vs Benchmark (with Color Change)
A simple but powerful tool to track relative strength against a benchmark like QQQ, SPY, or any other ETF.
๐ What it Shows
RS Ratio (orange line): Measures how strong a stock is relative to a benchmark.
Moving Average (teal line): Smooths out RS to show trend direction.
Color-coded RS Line:
๐ข Green = RS is above its moving average โ strength is increasing.
๐ด Red = RS is below its moving average โ strength is fading.
๐ How to Read It
Above 100 = Stock is outperforming the benchmark.
Below 100 = Underperforming.
Rising & Green = Strongest signal โ accelerating outperformance.
Above 100 but Red = Consolidating or losing momentum โ potential rest period.
Crosses below 100 = Warning sign โ underperformance.
โ Best Uses
Spot leading stocks with strong momentum vs QQQ/SPY.
Identify rotation โ when strength shifts between sectors.
Time entries and exits based on RS trends and crossovers.
A simple but powerful tool to track relative strength against a benchmark like QQQ, SPY, or any other ETF.
๐ What it Shows
RS Ratio (orange line): Measures how strong a stock is relative to a benchmark.
Moving Average (teal line): Smooths out RS to show trend direction.
Color-coded RS Line:
๐ข Green = RS is above its moving average โ strength is increasing.
๐ด Red = RS is below its moving average โ strength is fading.
๐ How to Read It
Above 100 = Stock is outperforming the benchmark.
Below 100 = Underperforming.
Rising & Green = Strongest signal โ accelerating outperformance.
Above 100 but Red = Consolidating or losing momentum โ potential rest period.
Crosses below 100 = Warning sign โ underperformance.
โ Best Uses
Spot leading stocks with strong momentum vs QQQ/SPY.
Identify rotation โ when strength shifts between sectors.
Time entries and exits based on RS trends and crossovers.
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.