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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.