OPEN-SOURCE SCRIPT
RS Framework Entry Scanner

This script is an advanced trading strategy for TradingView using relative strength (RS) analysis and traditional technical indicators. It's designed to identify high-probability long and short entry points on the daily chart for swing trades lasting 5-15 days.
Key features and usage guide:
1. Relative Strength (RS) Scoring:
- Computes 3-month and 6-month RS vs a benchmark (default: RSP ETF)
- Stock gets +1 for each of: 3M RS > 0, 6M RS > 0
- Background color shows current RS regime
2. Technical Indicator Scoring:
- Stock gets +1 for each of:
- Price above 200 SMA (structural uptrend)
- MACD histogram > 0 (momentum)
- RSI between 40-75 (healthy, not overbought/oversold)
- Uses standard moving averages (200, 50, 20 EMA)
3. Entry Triggers:
- Looks for any of these patterns:
- EMA pullback: Price near the 20 EMA
- MACD cross: MACD histogram crossing 0 with volume
- Breakout: New high/low on increased volume
- Long entry: RS score ≥ 4/5 ("A" grade) + bullish trigger
- Short entry: RS score ≥ 4/5 ("A" grade) + bearish trigger
- Triangles mark entries, small circles show qualifying RS setups
4. Score Table:
- Summarizes current RS metrics, indicator scores, active triggers
- Color-codes pass/fail status for each factor
- Displays overall long/short scores, RS trend, trigger labels
To use in your trading:
1. Add the script to a daily chart of a stock or ETF
2. Adjust the benchmark symbol if needed (default: RSP)
3. Review the background color for overall RS regime
4. Check table for current RS metrics and setup grade
5. Look for large triangle entries with a qualifying score
6. Confirm volume and price action aligns with the signal
7. Place trade in direction of entry with 5-15 day horizon
8. Trail stop above/below relevant swing point or moving average
9. Consider taking partial profits at measured move targets
The script aims to put the odds in your favor by requiring multiple technical and relative strength factors to line up before giving an entry signal.
Key features and usage guide:
1. Relative Strength (RS) Scoring:
- Computes 3-month and 6-month RS vs a benchmark (default: RSP ETF)
- Stock gets +1 for each of: 3M RS > 0, 6M RS > 0
- Background color shows current RS regime
2. Technical Indicator Scoring:
- Stock gets +1 for each of:
- Price above 200 SMA (structural uptrend)
- MACD histogram > 0 (momentum)
- RSI between 40-75 (healthy, not overbought/oversold)
- Uses standard moving averages (200, 50, 20 EMA)
3. Entry Triggers:
- Looks for any of these patterns:
- EMA pullback: Price near the 20 EMA
- MACD cross: MACD histogram crossing 0 with volume
- Breakout: New high/low on increased volume
- Long entry: RS score ≥ 4/5 ("A" grade) + bullish trigger
- Short entry: RS score ≥ 4/5 ("A" grade) + bearish trigger
- Triangles mark entries, small circles show qualifying RS setups
4. Score Table:
- Summarizes current RS metrics, indicator scores, active triggers
- Color-codes pass/fail status for each factor
- Displays overall long/short scores, RS trend, trigger labels
To use in your trading:
1. Add the script to a daily chart of a stock or ETF
2. Adjust the benchmark symbol if needed (default: RSP)
3. Review the background color for overall RS regime
4. Check table for current RS metrics and setup grade
5. Look for large triangle entries with a qualifying score
6. Confirm volume and price action aligns with the signal
7. Place trade in direction of entry with 5-15 day horizon
8. Trail stop above/below relevant swing point or moving average
9. Consider taking partial profits at measured move targets
The script aims to put the odds in your favor by requiring multiple technical and relative strength factors to line up before giving an entry signal.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.