Liquidity Sweep Reclaim Portfolio EA
- Experts
- 버전: 1.0
- 활성화: 10
Liquidity Sweep Reclaim Portfolio EA is a standalone MetaTrader 5 Expert Advisor designed to trade failed stop-hunts and liquidity pool reclaims strictly on closed bars. It monitors resting liquidity clusters across Asian session ranges, London session ranges, prior-day extremes, causal swing and equal highs/lows, 20-bar Turtle Soup boundaries, and prior-week levels, entering reversals only when price pierces beyond liquidity within controlled ATR bounds and closes decisively back inside.
The Expert Advisor runs as a single self-contained file with zero DLLs, zero WebRequest calls, zero external indicators, zero martingale, zero grid, and zero averaging down. Every position opens with a physical server-side stop-loss placed strictly beyond the swept wick extreme plus an ATR buffer, sized by in-sample risk-parity weights and protected by automatic balance drawdown step-down.
Core Liquidity Pools
- Asian Session High / Low (ASH / ASL) Judas Swing: Tracks the daylight-saving-aware London 00:00 to 07:00 Asian accumulation range and monitors London and New York liquidity windows for stop-hunt sweeps that reclaim back inside the range.
- London Session High / Low (LSH / LSL) New York Judas Swing: Tracks the daylight-saving-aware London 08:00 to 13:00 range and detects New York Open liquidity sweeps and closed-bar reclaims.
- Prior-Day High / Low (PDH / PDL) and Prior-Week (PWH / PWL): Extracts completed prior-day and prior-week extremes strictly prior to the active session bar, with automatic filtering for short Sunday rollover candles.
- Causal Swing / Equal Highs-Lows (EQH / EQL) and 20-Bar Turtle Soup: Identifies unbroken resting pivot clusters and N-bar liquidity pools confirmed strictly before the sweep window, with optional tick-volume climax spike confirmation and zero repainting.
Two-Step Causal Sweep-Reclaim Engine
- Step 1 (Bounded Stop-Hunt Pierce): Requires price to pierce beyond the active liquidity boundary by at least MinSweepATR while rejecting excessive runaway penetrations above MaxSweepATR that indicate genuine trend breakouts.
- Step 2 (Closed-Bar Conviction Reclaim): Within 1 to 4 closed bars, price must close back inside the liquidity pool with configurable close-position conviction, optional reversal-direction candle body confirmation, optional tick-volume climax spike ratio, and optional RSI exhaustion.
- Selectable Regime Filters: Trade pure counter-sweep fades with an optional ADX ceiling, secular higher-timeframe EMA trend-aligned stop-hunts, or hybrid mode, plus optional Long-Only or Short-Only direction filters.
Single-Chart 12-Slot Risk-Parity Institutional Portfolio
By default, attaching the EA to a single XAUUSD M30 chart operates twelve independent, risk-parity weighted slots across eight markets (Gold, European and US equity indices, and major/cross forex pairs). Each slot uses its calibrated liquidity pool, timeframe, session window, exit profile, and strictly in-sample risk-parity multiplier (0.65x to 1.35x):
- XAUUSD H4 (1.00x): PDH/PDL and EQH/EQL sweep reclaim with ADX filter and Chandelier ATR trailing runner.
- DE40 M30 (0.80x): Asian session ASH/ASL London Killzone sweep aligned with the secular daily EMA100 trend.
- AUDUSD H4 (1.35x): PDH/PDL and EQH/EQL liquidity snapback targeting 1.4R equilibrium moves.
- DE40 H4 (1.35x): Causal EQH/EQL structural swing fade with ADX filter.
- DE40 H4 (1.35x): 20-bar Turtle Soup sweep reclaim fade with ADX filter.
- US500 H4 (0.70x): PDH/PDL and EQH/EQL sweep reclaim with ADX filter and Chandelier ATR trailing runner.
- US500 H4 (1.25x): 20-bar Turtle Soup sweep reclaim fade with ADX filter.
- US30 M30 (0.65x): 20-bar Turtle Soup sweep with 1.3x tick-volume climax and reversal body confirmation.
- US30 H1 (1.15x): 20-bar Turtle Soup sweep with 1.3x tick-volume climax and reversal body confirmation.
- GBPJPY H1 (1.00x): 20-bar Turtle Soup sweep with 1.3x tick-volume climax and reversal body confirmation.
- CHFJPY H4 (1.35x): Causal EQH/EQL structural swing fade with ADX filter.
- NZDCAD H4 (1.10x): 20-bar Turtle Soup sweep reclaim fade with ADX filter.
Broker prefixes, suffixes (such as .a, .r, or m), and common index aliases (DE40/GER40, US30/WS30, US500/SPX500, USTEC/US100) resolve automatically at runtime, prioritizing the chart's symbol suffix. You can also switch Execution Mode to Chart Symbol Only to run any liquidity pool directly on any forex pair, metal, index, or crypto chart.
Risk Management, Drawdown Step-Down and Guardrails
- Hard Physical Stop-Loss: Placed outside the actual swept extreme plus ATR buffer, clamped safely to minimum/maximum ATR bounds and broker stop/freeze levels.
- Automatic Balance Drawdown Step-Down: Trades full target risk near peak balance, automatically reduces position risk by InpDDStepMult (default 0.50x) while realized balance is at least InpDDStepPct (default 6.0%) below peak, and restores full risk automatically upon recovery.
- Flexible Trade Management: Supports fixed R-multiple targets, opposite liquidity boundary targets, optional TP1 partial close with automatic breakeven lock, standalone breakeven trigger, Chandelier ATR trailing stop, and maximum holding-bar or intraday flat exits.
- Portfolio Exposure Caps: Limits maximum simultaneous open positions (default 10), maximum directional exposure per currency (default 3, including net USD exposure across pairs), and maximum positions per asset group (default 4).
- Execution and Funded-Account Protections: Includes spread-to-ATR and spread-to-stop cost guards, midnight rollover shield, Friday entry cutoff, built-in MetaTrader 5 Economic Calendar high-impact news filter (no WebRequest required), and daily equity loss and overall equity drawdown circuit breakers.
High-DPI 12-Slot Dashboard and On-Chart Visuals
A single-canvas High-DPI dashboard displays session status, London and New York clocks, live net USD exposure, drawdown step-down status, equity and daily P&L metrics, and compact per-slot liquidity telemetry for all twelve slots. It includes one-click Dark and Light themes, 100% and 200% DPI scaling with zero clipping and right price-axis clearance, header drag, collapse toggle, Pause EA, and a two-step Close All safety control. Active ASH/ASL and LSH/LSL range boxes, PDH/PDL, EQH/EQL, sweep arrows, and TP1/TP2 targets plot cleanly on chart and are removed completely when the EA is detached.
Strategy Tester Backtest Summary
Backtest Disclosure: All figures below are MetaTrader 5 Strategy Tester historical simulations on raw-spread ECN demo data ($10,000 initial deposit, 1:100 leverage, commissions included, single XAUUSD M30 chart). Rules and risk-parity weights were calibrated strictly on 2021-2024 In-Sample data across 26 markets, then verified frozen on unseen 2025-2026 Out-of-Sample and Every Tick Based on Real Ticks (Model=4) data. Past backtest performance does not guarantee future live results.
- Balanced Default Preset (0.95% Risk, 4.0% Daily Limit, 6.0% / 0.50x DD Step-Down, 5.8 Years 2021.01 to 2026.10, 1-min OHLC): Net Profit +$80,890 (+808.9%), Profit Factor 1.30, 1,751 trades, Max Equity Drawdown 14.94%, Recovery Factor 5.16, Sharpe Ratio 2.14.
- Balanced Default Unseen Out-of-Sample Real Ticks (2025.03 to 2026.10, Model=4): Net Profit +$8,620 (+86.2%), Profit Factor 1.30, 495 trades, Max Equity Drawdown 13.60%, Recovery Factor 3.00, Sharpe Ratio 2.03. All twelve curated slots finished profitable individually on real ticks.
- Low-Drawdown Funded-Account Preset (0.55% Risk, 3.5% Daily / 10.0% Max DD, 4.0% / 0.50x DD Step-Down, 5.8 Years 2021.01 to 2026.10): Net Profit +$28,772 (+287.7%), Profit Factor 1.32, 1,752 trades, Max Equity Drawdown 8.52%, Recovery Factor 8.05, Sharpe Ratio 2.24 (Real-Tick Unseen OOS: +$3,217, PF 1.23, Max Equity DD 9.31%).
- Growth Compounding Preset (1.25% Risk, 5.0% Daily Limit, 6.0% / 0.50x DD Step-Down, 5.8 Years 2021.01 to 2026.10): Net Profit +$135,158 (+1,351.6%), Profit Factor 1.30, 1,751 trades, Max Equity Drawdown 17.76%, Recovery Factor 4.42, Sharpe Ratio 2.10 (Real-Tick Unseen OOS: +$12,398, PF 1.30, Max Equity DD 16.69%, Sharpe Ratio 2.13).
Quick Setup
- Ensure XAUUSD, DE40 (or GER40), AUDUSD, US500 (or SPX500), US30, GBPJPY, CHFJPY, and NZDCAD are enabled in Market Watch (any unavailable symbol is skipped safely without interrupting remaining slots).
- Open a single XAUUSD M30 chart and attach the EA.
- Keep default inputs for the Balanced 0.95% portfolio (6% balance drawdown step-down enabled), or adjust InpRiskPercent to 0.55% with InpMaxDailyLossPct = 3.5, InpMaxTotalDDPct = 10.0, and InpDDStepPct = 4.0 for the Low-Drawdown profile.
- Enable Algo Trading. Test thoroughly in the Strategy Tester using the free demo before live deployment.

