Swing Trade Master v2 [14-Confirm]

Overview
Instead of relying on any single indicator, this script runs 14 indicators simultaneously on every bar and assigns each one a vote — bullish or bearish. Those votes are tallied into a score out of 14. A trade signal only fires when the score clears your chosen threshold and a momentum trigger fires at the exact same bar, ensuring both the broad market context and short-term timing agree. A Choppiness Index gate sits above everything and blocks all signals when the market is ranging rather than trending.
How a signal is generated — step by step
Choppiness gate check
The Choppiness Index is calculated first. If it reads above 61.8 (ranging/choppy market), all signals are suppressed for that bar and bars tint gray. This prevents entries during sideways price action where trend indicators give false signals.
Each indicator casts a vote
All 14 indicators evaluate the current bar. Each one produces a binary result — bullish (1) or bearish (0). Trend indicators look at alignment, momentum oscillators look at zones, and volume/flow indicators check buying vs selling pressure.
Scores are tallied
Bull votes are summed into a Bull Score (0–14) and bear votes into a Bear Score (0–14). Both are displayed live in the HUD table on the top-right of your chart. A score of 7 or above means at least half of all indicators agree on direction.
Score threshold check
The bull/bear score must reach your configured minimum (default 7/14). This filters out weak or ambiguous setups where indicators disagree. The higher you set this threshold, the fewer but stronger signals you receive.
Momentum trigger required
Even with a passing score, the signal won't fire unless a momentum-based crossover also occurs on the same bar — one of: MACD cross, RSI exiting oversold/overbought, Stochastic RSI cross, Williams %R exit, Super trend flip, or Parabolic SAR flip. This provides precise timing, so you don't enter mid-trend.
Opposing score tie-break
A final sanity check: if the opposing score is higher than the signal score, the signal is blocked. For example, a bull score of 8 is blocked if the bear score is 9 — the market is too mixed to take confidently.
De-duplication
Once a BUY or SELL fires, it is locked in. Subsequent bars that would trigger the same direction are suppressed until a signal in the opposite direction appears. This means you never see stacks of BUY labels on consecutive bars.
ATR stop loss and take profit drawn
On signal bars, horizontal SL and TP lines are drawn. Stop Loss = entry price minus (ATR × 1.5). Take Profit = entry price plus (ATR × 3.0). This gives a default 2:1 risk/reward ratio. Both multipliers are adjustable in settings.
Exit monitoring begins
After entry, the script monitors 10 exit conditions. A minimum of 3 bars must pass before any exit can fire. Then either a single strong exit (Super trend or PSAR flip) or 2+ standard exit conditions must agree simultaneously. Only one exit signal per trade is shown — never repeated.
Signal types on the chart
▲ BUY — green label below bar
All conditions met. Shows score, SL price, TP price in a detail label. Teal PSAR dots switch below price. Supertrend line turns green.
▼ SELL — red label above bar
All conditions met for short entry. Shows score, SL, TP. PSAR dots switch above price. Supertrend line turns red.
✕ Exit long — orange X above bar
Fired after 3+ bars when Supertrend/PSAR flips bearish, or 2+ of: RSI OB cross, MACD cross, Stoch, CCI, WPR, MFI, or VWAP cross.
✕ Exit short — cyan X below bar
Fired after 3+ bars when Supertrend/PSAR flips bullish, or 2+ of the same conditions reversed. One exit maximum per trade.
When the market is choppy (Choppiness Index > 61.8), bars tint gray and a ⚠ CHOP label appears on the last bar. No BUY or SELL signals will fire until trending conditions return.
Recommended settings by market type
Stocks (trending)
Score 7–8 · 4H or Daily · ATR SL 1.5 · TP 3.0
Crypto (volatile)
Score 8–9 · 4H or Daily · ATR SL 2.0 · TP 4.0
Forex (ranging)
Score 8+ · Daily only · Lower Chop to 55 · SL 1.2
Index ETFs
Score 6–7 · Daily · Default ATR · Standard Chop
Instead of relying on any single indicator, this script runs 14 indicators simultaneously on every bar and assigns each one a vote — bullish or bearish. Those votes are tallied into a score out of 14. A trade signal only fires when the score clears your chosen threshold and a momentum trigger fires at the exact same bar, ensuring both the broad market context and short-term timing agree. A Choppiness Index gate sits above everything and blocks all signals when the market is ranging rather than trending.
How a signal is generated — step by step
Choppiness gate check
The Choppiness Index is calculated first. If it reads above 61.8 (ranging/choppy market), all signals are suppressed for that bar and bars tint gray. This prevents entries during sideways price action where trend indicators give false signals.
Each indicator casts a vote
All 14 indicators evaluate the current bar. Each one produces a binary result — bullish (1) or bearish (0). Trend indicators look at alignment, momentum oscillators look at zones, and volume/flow indicators check buying vs selling pressure.
Scores are tallied
Bull votes are summed into a Bull Score (0–14) and bear votes into a Bear Score (0–14). Both are displayed live in the HUD table on the top-right of your chart. A score of 7 or above means at least half of all indicators agree on direction.
Score threshold check
The bull/bear score must reach your configured minimum (default 7/14). This filters out weak or ambiguous setups where indicators disagree. The higher you set this threshold, the fewer but stronger signals you receive.
Momentum trigger required
Even with a passing score, the signal won't fire unless a momentum-based crossover also occurs on the same bar — one of: MACD cross, RSI exiting oversold/overbought, Stochastic RSI cross, Williams %R exit, Super trend flip, or Parabolic SAR flip. This provides precise timing, so you don't enter mid-trend.
Opposing score tie-break
A final sanity check: if the opposing score is higher than the signal score, the signal is blocked. For example, a bull score of 8 is blocked if the bear score is 9 — the market is too mixed to take confidently.
De-duplication
Once a BUY or SELL fires, it is locked in. Subsequent bars that would trigger the same direction are suppressed until a signal in the opposite direction appears. This means you never see stacks of BUY labels on consecutive bars.
ATR stop loss and take profit drawn
On signal bars, horizontal SL and TP lines are drawn. Stop Loss = entry price minus (ATR × 1.5). Take Profit = entry price plus (ATR × 3.0). This gives a default 2:1 risk/reward ratio. Both multipliers are adjustable in settings.
Exit monitoring begins
After entry, the script monitors 10 exit conditions. A minimum of 3 bars must pass before any exit can fire. Then either a single strong exit (Super trend or PSAR flip) or 2+ standard exit conditions must agree simultaneously. Only one exit signal per trade is shown — never repeated.
Signal types on the chart
▲ BUY — green label below bar
All conditions met. Shows score, SL price, TP price in a detail label. Teal PSAR dots switch below price. Supertrend line turns green.
▼ SELL — red label above bar
All conditions met for short entry. Shows score, SL, TP. PSAR dots switch above price. Supertrend line turns red.
✕ Exit long — orange X above bar
Fired after 3+ bars when Supertrend/PSAR flips bearish, or 2+ of: RSI OB cross, MACD cross, Stoch, CCI, WPR, MFI, or VWAP cross.
✕ Exit short — cyan X below bar
Fired after 3+ bars when Supertrend/PSAR flips bullish, or 2+ of the same conditions reversed. One exit maximum per trade.
When the market is choppy (Choppiness Index > 61.8), bars tint gray and a ⚠ CHOP label appears on the last bar. No BUY or SELL signals will fire until trending conditions return.
Recommended settings by market type
Stocks (trending)
Score 7–8 · 4H or Daily · ATR SL 1.5 · TP 3.0
Crypto (volatile)
Score 8–9 · 4H or Daily · ATR SL 2.0 · TP 4.0
Forex (ranging)
Score 8+ · Daily only · Lower Chop to 55 · SL 1.2
Index ETFs
Score 6–7 · Daily · Default ATR · Standard Chop
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน