PROTECTED SOURCE SCRIPT
Swing Crypto Bot – Extended Patterns + Three Outside Up

Swing Crypto Bot – Extended Patterns is a Pine-Script indicator that automatically scans for seven high-probability bullish setups and only signals when multiple conditions align. Here’s an advanced overview of how it works under the hood:
1. Multi-Factor Filters
Trend Filter: Price must be above the 50-period Simple Moving Average.
Volatility Filter: Price must also break above the upper Bollinger Band (20,2) to catch momentum expansions.
Momentum Filter: RSI(14) is constrained to between 45 and 80, avoiding both extreme overbought and oversold readings.
Participation Filter: Current bar’s volume must exceed its 20-period moving average.
2. Seven Candlestick Patterns
The script codes and counts each of these classic bullish reversals:
Hammer – a long lower wick (≥2× body) after a downtrend.
Bullish Engulfing – a green body fully engulfing the prior red body.
Bullish Harami – a small green body contained within the prior red body.
Morning Star – a three-bar sequence: a down bar, a neutral/doji bar, then a strong up close above mid-point.
Three White Soldiers – three consecutive long green bars each closing higher than the last.
Tweezer Bottom – two bars with identical lows and the second bar green, marking a double-bottom.
Three Outside Up – three bars: a red bar, a green engulfing bar, then a third green bar closing above the engulfing high.
Each pattern sets its own Boolean flag (hammerOK, engulfOK, etc.), then the script tallies how many of the seven are true on that bar.
3. Pattern Naming Logic
If exactly one pattern flag is true, the indicator labels it by name (“Hammer”, “Engulfing”, etc.).
If more than one triggers simultaneously, it displays “Mixed”.
If none are found (even if the bar meets other filters), it shows “None”.
4. Scoring & Signal Logic
The script awards 1 point each for:
Price > SMA50
Price > Upper BB
Volume > MA(20)
RSI in [45,80]
Any of the 7 patterns detected
A buy signal fires only when the bar is the last bar, and the score ≥ 3.
5. Risk Management & Alerts
Stop-Loss = 1.5 × ATR(14) below entry (automatically guaranteed to be below current price).
Take-Profit = 2 × that ATR-based risk (ensuring a minimum 2:1 RR).
On the final bar, the script plots:
A 🔥 flame icon above the bar.
A single info bubble showing
By layering trend, momentum, volume and 7 distinct candlestick patterns into a concise entry rule with built-in TP/SL, this script gives swing traders a comprehensive, multi-signal alert system—all visible at a glance on your chart.
1. Multi-Factor Filters
Trend Filter: Price must be above the 50-period Simple Moving Average.
Volatility Filter: Price must also break above the upper Bollinger Band (20,2) to catch momentum expansions.
Momentum Filter: RSI(14) is constrained to between 45 and 80, avoiding both extreme overbought and oversold readings.
Participation Filter: Current bar’s volume must exceed its 20-period moving average.
2. Seven Candlestick Patterns
The script codes and counts each of these classic bullish reversals:
Hammer – a long lower wick (≥2× body) after a downtrend.
Bullish Engulfing – a green body fully engulfing the prior red body.
Bullish Harami – a small green body contained within the prior red body.
Morning Star – a three-bar sequence: a down bar, a neutral/doji bar, then a strong up close above mid-point.
Three White Soldiers – three consecutive long green bars each closing higher than the last.
Tweezer Bottom – two bars with identical lows and the second bar green, marking a double-bottom.
Three Outside Up – three bars: a red bar, a green engulfing bar, then a third green bar closing above the engulfing high.
Each pattern sets its own Boolean flag (hammerOK, engulfOK, etc.), then the script tallies how many of the seven are true on that bar.
3. Pattern Naming Logic
If exactly one pattern flag is true, the indicator labels it by name (“Hammer”, “Engulfing”, etc.).
If more than one triggers simultaneously, it displays “Mixed”.
If none are found (even if the bar meets other filters), it shows “None”.
4. Scoring & Signal Logic
The script awards 1 point each for:
Price > SMA50
Price > Upper BB
Volume > MA(20)
RSI in [45,80]
Any of the 7 patterns detected
A buy signal fires only when the bar is the last bar, and the score ≥ 3.
5. Risk Management & Alerts
Stop-Loss = 1.5 × ATR(14) below entry (automatically guaranteed to be below current price).
Take-Profit = 2 × that ATR-based risk (ensuring a minimum 2:1 RR).
On the final bar, the script plots:
A 🔥 flame icon above the bar.
A single info bubble showing
By layering trend, momentum, volume and 7 distinct candlestick patterns into a concise entry rule with built-in TP/SL, this script gives swing traders a comprehensive, multi-signal alert system—all visible at a glance on your chart.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.