PROTECTED SOURCE SCRIPT
A+/B+ Setup Detector (Enhanced)

Heikin Ashi Doji or Engulfing Candles
A reversal-type doji or a strong engulfing candle (bullish for buys, bearish for sells) must appear.
This marks a potential market pause or change in direction.
🔹 Stochastic RSI
Bullish or bearish Stochastic RSI confirms momentum in the direction of the trade.
🔹 Price vs. 100/200 EMAs
A+ Setups only trigger when price is:
Above both EMAs for a Buy (uptrend).
Below both EMAs for a Sell (downtrend).
B+ Setups allow signals if price is just touching the EMAs but not breaking through them.
🔹 Liquidity Sweep
The candle must grab liquidity by sweeping recent highs/lows, a common smart money trap that precedes a real move.
🔹 Break of Structure (BoS)
Confirms market structure shift:
For buys: closes above recent highs.
For sells: closes below recent lows.
🔹 Momentum Filter
Candle bodies must be at least 45% of the ATR to ensure strong market intent.
🔹 Key Liquidity Zones
Boxes (faded red/green) are drawn around historical highs/lows to show:
Supply (red): where price may reverse downward.
Demand (green): where price may reverse upward.
A reversal-type doji or a strong engulfing candle (bullish for buys, bearish for sells) must appear.
This marks a potential market pause or change in direction.
🔹 Stochastic RSI
Bullish or bearish Stochastic RSI confirms momentum in the direction of the trade.
🔹 Price vs. 100/200 EMAs
A+ Setups only trigger when price is:
Above both EMAs for a Buy (uptrend).
Below both EMAs for a Sell (downtrend).
B+ Setups allow signals if price is just touching the EMAs but not breaking through them.
🔹 Liquidity Sweep
The candle must grab liquidity by sweeping recent highs/lows, a common smart money trap that precedes a real move.
🔹 Break of Structure (BoS)
Confirms market structure shift:
For buys: closes above recent highs.
For sells: closes below recent lows.
🔹 Momentum Filter
Candle bodies must be at least 45% of the ATR to ensure strong market intent.
🔹 Key Liquidity Zones
Boxes (faded red/green) are drawn around historical highs/lows to show:
Supply (red): where price may reverse downward.
Demand (green): where price may reverse upward.
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.