SMC King HK Super Scalper
- Uzmanlar
- Sürüm: 1.33
- Güncellendi: 16 Eylül 2026
- Etkinleştirmeler: 20
(It Will Work Only XAUUSD M5 and XAGUSD H1)
🧠 How the EA Takes Trades — Step by Step Logic
The EA runs two separate trading engines simultaneously, and an automatic regime switch controls which one is active. Here's the full flow of both.
1️⃣ REVERSAL MODE (POI Sweep + Retest + Break Entry)
This is the EA's core "Smart Money" logic. Step by step:
Step 1 — POI (Order Block) Formation
- The EA detects swing highs and swing lows ( InpSwingLength bars on each side).
- Each swing forms a POI (Point of Interest / Order Block) zone — the zone width is calculated from ATR ( InpBoxATRMult ).
- A bullish swing low → Demand Zone (Bull POI). A bearish swing high → Supply Zone (Bear POI).
Step 2 — Liquidity Sweep (Stop Hunt)
- When price wicks into that POI zone or slightly beyond it ( InpSweepMinPips ), this is treated as a "sweep" — meaning the market has taken liquidity (triggered stop-loss orders).
- The POI's status then becomes SWEPT .
Step 3 — Retest Confirmation
- After the sweep, the first candle that closes back outside the POI zone (above the zone for a bullish POI, below for a bearish POI) becomes the "retest confirmation candle."
- That candle's own high (for buys) or low (for sells) instantly becomes the entry trigger level — no extra waiting bar is needed.
Step 4 — Break Entry
- The moment any later candle breaks that trigger level (high/low break), the EA fires an instant market entry.
- Each POI can only produce one trade (a hard traded lock) — even if price revisits that zone later, it will never trade the same POI twice.
Step 5 — Filters before an entry fires
- Trend filter ( InpUseTrendFilter + InpReversalTrendAlign ) — if enabled, the trade must align with the trend direction.
- Regime filter ( InpBlockReversalInStrongTrend ) — if the market is in a STRONG trend, reversal/sweep trades are skipped (the logic assumes counter-trend sweeps are riskier during a strong trend).
- Session filter — entries only fire inside enabled session time windows.
- Spread filter — entry is cancelled if spread exceeds InpMaxSpreadPips .
- Max open trades check.
2️⃣ BREAKOUT MODE (Trend-Following Structure Break)
- The EA tracks the most recent swing high/low ( g_lastSwingHigh/Low ).
- When the close price crosses that swing level (above a swing-high for a buy breakout, below a swing-low for a sell breakout) and the market is in a STRONG trend regime ( InpBreakoutOnlyInStrongTrend ), a breakout trade fires.
- Candle color confirmation ( InpBreakoutRequireCandleColor ) — the breakout candle must actually be bullish (green) for a buy, or bearish (red) for a sell; a close price above/below the level alone is not enough.
- One-shot lock per level — the same swing level cannot produce another trade until a genuinely new pivot forms. This prevents the "trade every bar" bug.
3️⃣ REGIME-BASED AUTO SWITCH (v1.28 — The Most Important Feature)
Every bar, the market is classified into one of four regimes:
- STRONG UPTREND: EMA9 > EMA15 > EMA50 stacked + price above EMA200
- STRONG DOWNTREND: opposite stacking + price below EMA200
- UPTREND/DOWNTREND (weak): only a simple EMA9 vs EMA15 cross
- RANGING: no clear stacking
Based on this, decisions are made automatically:
| Regime | Breakout Trades | Reversal/Sweep Trades |
|---|---|---|
| STRONG trend (either direction) | ✅ ON | ❌ OFF (if InpBlockReversalInStrongTrend=true ) |
| Ranging / weak trend | ❌ OFF (if InpBreakoutOnlyInStrongTrend=true ) | ✅ ON |
This all happens automatically — no manual mode switching required. The dashboard's "Regime:" line shows the live status.
🕒 Session Filter — How It Works
- Three sessions are defined: Asian, London, New York — each independently switchable ON/OFF, with a custom start-end time (broker/server time, HH:MM).
- When InpUseSessionFilter=true , the EA only opens new trades within an enabled session's time window — the POI/structure logic stays the same, this is purely an entry-timing gate.
Per-Session Trade Limit
- Each session keeps its own trade counter (max InpMaxTradesPerSession = 1 or 2 trades).
- STRICT RULE: If that session's first trade closes at a LOSS (SL), no more trades are taken in that session (the session is hard-blocked).
- A second trade is only allowed once the first trade has closed in PROFIT.
- Counters and blocks reset automatically the moment a new session window starts.
Asian-Loss-Blocks-Day Rule
- If the Asian session's very first trade closes at a loss, all trading is blocked for the rest of that calendar day (broker date) — Asian, London, New York, no session, no new trade.
- This resets automatically when the calendar date changes.
🛡️ Stop Loss (SL) Engine — 7 Modes
| Mode | Logic |
|---|---|
| Fixed | A fixed pip distance |
| Retest Candle | Sweep/retest candle's wick + buffer |
| Recent Swing | Recent swing high/low + buffer |
| ATR Based | Entry ± (ATR × multiplier) |
| Prev Candle | High/low of the candle before the signal candle + buffer |
| Safest | Picks the widest SL among all valid candidates (maximum safety) |
| Tightest | Picks the narrowest SL among all valid candidates (maximum R:R) |
In every mode, InpMinSL_Pips and InpMaxSL_Pips enforce hard minimum/maximum caps.
🎯 Take Profit (TP) Engine — 2 Modes
- Fixed Pips: A fixed pip distance from entry.
- Risk:Reward Ratio: A multiple of the actual SL distance (e.g. 1:2 or 1:3) — whatever the SL turns out to be, the TP is its multiple.
📈 Trade Management (After a Position Opens)
- Partial Close — By default, 50% of the position closes at InpPartialAtR (e.g. 1R) profit, leaving the rest running.
- Auto Break-Even — At InpBE_AtR R profit, the SL moves to entry + a small offset ( InpBE_OffsetPips ) — locking in downside protection.
- Optional Trailing SL — After break-even, trailing starts at InpTrailStartR , maintaining a fixed distance ( InpTrailDistPips ) behind price.
💰 Lot Sizing Engine
- InpFixedLots = 0 → The EA auto-calculates lot size from Balance × InpRiskPercent ÷ actual SL distance (risk-based).
- InpFixedLots > 0 → Always uses that exact fixed lot size regardless of balance.
📊 Live Dashboard
Displayed in real time on the chart: Equity, Balance, Today's P/L, Total Return, Trend, Regime (with auto-mode note), POI counts (total/active/history), Trading Mode, SL Mode, TP Mode, Management status, Active Session, Session trade counts, Day-block status, Last Signal, Last SL/TP info.
✅ Updated Recommended Settings (As Per Your Instructions)
🥇 XAUUSD — M5, RR 1:2 → Asian + London Sessions ON, New York OFF
| Input | Value |
|---|---|
| InpTradeMode | AUTO |
| InpPipSize | 0.1 |
| InpTPMode | TP_RR_RATIO |
| InpRR_Ratio | 2.0 |
| InpUseSessionFilter | true |
| InpSessionAsianEnable | true |
| InpSessionLondonEnable | true |
| InpSessionNewYorkEnable | false |
| InpMaxTradesPerSession | 1–2 |
| InpAsianLossBlocksDay | true |
| InpFixedLots | 0 (risk-based) |
| InpRiskPercent | 1–2% (suggested 1.5%) |
| InpSLMode | High/low of the candle before the signal candle + buffer |
🥈 XAGUSD — H1, RR 1:3 → Asian + London + New York — All Sessions ON
| Input | Value |
|---|---|
| InpTradeMode | AUTO |
| InpPipSize | Verify on your broker's chart (commonly 0.01 or 0.001) |
| InpTPMode | TP_RR_RATIO |
| InpRR_Ratio | 3.0 |
| InpUseSessionFilter | true |
| InpSessionAsianEnable | true |
| InpSessionLondonEnable | true |
| InpSessionNewYorkEnable | true |
| InpMaxTradesPerSession | 1 |
| InpFixedLots | 0 (risk-based) |
| InpRiskPercent | 1–2% (suggested 1.5%) |
| InpSLMode | High/low of the candle before the signal candle + buffer |
| InpSwingSLLookback | 20–30 |
Note: Enabling all sessions for XAGUSD widens the trading window to nearly full-day coverage — this is fine because H1 already trades less frequently, and the built-in safety rules (per-session limit + Asian-loss-blocks-day) already prevent overtrading.
⚠️ Reminder
These settings differ from the fixed-lot numbers used in the backtest reports shared earlier — for live/demo trading, using InpFixedLots=0 with risk-based sizing is safer, as discussed above. Always forward-test on demo before going live.
🚨 RISK WARNING — Past Performance Is NOT a Guarantee
- Past backtest/optimization results (including the $7,000 XAUUSD and $15,805 XAGUSD numbers shared earlier) do not guarantee any future profit. They reflect how the strategy performed on one specific historical price window, under one specific broker/spread/execution environment.
- Trading forex, gold, and silver CFDs involves a real and significant risk of loss. You can lose part, or all, of your invested capital — no automated strategy, including this EA, eliminates that risk.
- Markets change. A regime, session pattern, or volatility structure that worked well in the tested period can behave completely differently going forward. There is no assurance the same win rate, drawdown, or profit factor will repeat.
- Leverage magnifies both gains and losses. The 1:100 leverage used in the shared backtest increases risk exposure significantly relative to account size.
- Live execution differs from backtesting — slippage, requotes, variable spread, and connection latency can all reduce real-world performance compared to simulated results.
- Never trade with money you cannot afford to lose. Always size positions based on your own risk tolerance (the suggested 1–2% per trade is a guideline, not a promise of safety), and treat every recommendation in this document as informational — not financial advice.
This EA is a tool to automate a defined set of trading rules. It does not predict the market and does not guarantee income of any kind.
