PROTECTED SOURCE SCRIPT

SMC Breaker+Liquidity + HTF EMA — v6

435
1️⃣ Core Idea
This is a Smart Money Concept (SMC)
It looks for liquidity sweeps followed by price moving back in the opposite direction (breaker block behavior), while trading only in the direction of the higher timeframe (HTF) trend.
2️⃣ Components
A. Higher Timeframe EMA Bias
We take an EMA (default length: 50) from a higher timeframe (default: 4H).
If price is above that EMA → bias is bullish (we only take longs).
If price is below that EMA → bias is bearish (we only take shorts).
This keeps trades aligned with the bigger picture trend
B. Liquidity Sweep Detection
We find the highest high and lowest low over the past 5 bars
A sweep high happens when:
Price breaks above a recent high (liquidity grab), but
Closes back below it (false breakout).
A sweep low happens when:
Price breaks below a recent low, but
Closes back above it.
This indicates stop hunting — whales often trigger these before reversing price.
C. Breaker Block Logic
If a sweep low occurs and bias is bullish → BUY.
If a sweep high occurs and bias is bearish → SELL.
D. Optional ADX Filter
ADX checks market strength (trendiness).
If enabled, it only trades when ADX > threshold (default 20).
This avoids ranging/choppy markets.
3️⃣ Risk Management
Stop Loss (SL):
For longs → ATR(14) below the entry candle low.
For shorts → ATR(14) above the entry candle high.
Take Profit (TP):
SL distance × Risk:Reward ratio (default 3:1).
This means every win can be 3x bigger than a loss.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.