XTG SuperSmart
- Uzman Danışmanlar
- Xuan Tien Nguyen
- Sürüm: 10.100
- Etkinleştirmeler: 5
XTGold Ultimate v10.10 — Quant-Grade Expert Advisor
XTGold Ultimate is a professional Expert Advisor developed for MetaTrader 5, engineered through ten successive versions with a focus on signal quality, execution reliability, and multi-layer capital protection. The system runs four independent trading strategies on every bar, applies a real-time Candlestick Pattern Library to score and confirm each signal, and manages risk through either a fixed lot or a dynamic risk-percentage model calibrated to the account balance and actual stop-loss distance.
The EA is fully compatible with both hedging and netting accounts, auto-detects broker fill mode at startup, and handles all common broker edge cases — including INVALID_STOPS retry, freeze-level modification guards, and minimum volume validation — without requiring any manual configuration.
Trading Strategies
Strategy 1 — Anti-Sweep Reversal is the primary signal source. It identifies liquidity sweep events: the characteristic long-wick candle produced when institutional players flush retail stop clusters before reversing price. The pattern is confirmed by RSI directional bias and optional Bollinger Band proximity, with MTF confluence applied when enabled.
Strategy 2 — Trend Continuation enters in the direction of an established trend confirmed by ADX above threshold and actively rising, price above or below EMA-21, and RSI momentum. An optional Adaptive Mode reduces the ADX threshold slightly after a configurable UTC hour if no trade has been opened — ensuring minimum daily activity during slow sessions.
Strategy 3 — Bollinger Band Reversion fades overextended moves at statistical extremes. It requires simultaneous Bollinger Band touch, RSI overbought or oversold reading, a sweep-wick candle, a Pinbar filter, and optional volume confirmation. It activates only in non-trending market conditions.
Strategy 4 — Pattern at Key Level is the newest addition. It fires when the combined candlestick pattern score reaches a configurable threshold at a structurally significant level — the EMA zone or Bollinger Band boundary — without requiring a sweep event or consecutive directional candles. This strategy is specifically designed to generate 1–3 additional quality setups on flat, low-volatility days.
Candlestick Pattern Library
Eight patterns are detected automatically on every bar close and applied across all four strategies. Each pattern carries a weighted score that is added to the confidence value of any concurrent signal.
| Pattern | Score | Direction |
|---|---|---|
| Morning Star | 18 | Bullish |
| Evening Star | 18 | Bearish |
| Bullish Engulfing | 15 | Bullish |
| Bearish Engulfing | 15 | Bearish |
| Hammer | 12 | Bullish |
| Hanging Man | 10 | Bearish |
| Dragonfly Doji | 8 | Bullish |
| Gravestone Doji | 8 | Bearish |
Pattern names, scores, and real-time bull/bear totals are displayed on the live Dashboard.
Lot Sizing — Two Modes
Fixed Lot uses a static volume for every entry. Risk % per Trade calculates position size dynamically using the standard quantitative formula — Lot = (Balance × Risk%) ÷ (SL distance ÷ tick size × tick value) — so the monetary risk per trade remains proportional to account size regardless of market conditions. Hard minimum and maximum lot limits prevent over-leverage at any balance level.
Five-Layer Protection System
Each layer monitors an independent condition and sets a global halt flag on breach. All layers are checked at the start of every tick before any position management or new entry logic executes.
Float TP closes all positions immediately when combined unrealised P&L reaches the target. Daily TP stops new entries for the remainder of the day when daily net profit is reached. Global TP permanently halts the EA after cumulative lifetime profit since attach reaches the target. Drawdown Guard halts trading if equity drawdown from the day's opening balance exceeds the configured percentage. SL Guard halts trading after a configurable number of stop-loss exits in a single calendar day.
Broker Execution Safety
Fill mode is auto-detected at startup by reading SYMBOL_FILLING_MODE and selecting the best available option (FOK → IOC → RETURN). A three-mode fallback loop with CTrade synchronisation handles the rare case where the detected mode is rejected on the first order. Entry orders validate volume against SYMBOL_VOLUME_MIN and SYMBOL_VOLUME_MAX before sending, and retry with expanded stops on TRADE_RETCODE_INVALID_STOPS . Position modifications are pre-validated against both SYMBOL_TRADE_STOPS_LEVEL and SYMBOL_TRADE_FREEZE_LEVEL — if either the SL or TP is within the broker's freeze zone, the modification is silently deferred to the next tick rather than generating a failed modify error.
Session, News & Timing Filters
The EA trades during configurable session windows (default: London 07:00–12:00 UTC, New York 13:00–18:00 UTC). A Session Open Blackout blocks new entries for the first N minutes of each session open to avoid the artificial spike patterns common at London and New York open. The News Filter queries the MetaTrader 5 built-in Calendar API for high-impact USD events with configurable pre-event and post-event buffers, automatic close-on-news, and automatic resume after the news window expires. A per-trade cooldown timer prevents re-entry after a stop-loss exit.
Multi-Timeframe Confluence
When MTF is enabled, the EA simultaneously monitors nine timeframes (M1, M5, M15, M30, H1, H4, D1, W1, MN) for directional bias using EMA and ADX. Entry signals require a minimum confluence score across timeframes. All 18 handles are created conditionally — disabling MTF saves approximately 45 MB of RAM on low-resource VPS environments.
Live Dashboard
The built-in Dashboard Pro renders a 1020 × 770 pixel three-column panel updating on every tick. The left column covers account overview, balance and P&L, license status, lot and risk information, daily targets, and market status. The centre column shows signal status with confidence percentage, the candlestick pattern panel, MTF confluence grid, news monitor, open positions, and 12-month P&L history. The right column displays a 10-row trade history table, all active settings, a 60-sample equity curve sparkline with peak and drawdown, and the daily guard status.
Technical Specifications
| Parameter | Value |
|---|---|
| Platform | MetaTrader 5 |
| Recommended symbols | XAUUSD (M5), EURUSD (H1) |
| Account type | Hedging and Netting (auto-detected) |
| Fill mode | Auto-detected: FOK / IOC / RETURN with fallback |
| Minimum deposit | $100 (fixed lot) · $500 recommended (Risk % mode) |
| Broker | Any MT5 broker supporting the symbol |
| News filter | MT5 Calendar API — no third-party feed required |
| VPS | Windows VPS recommended, latency < 20 ms |
| Magic number | Configurable, default 11000 |
Backtesting
Run with Every Tick mode and a minimum of 12 months of tick data. The news filter is automatically disabled in Strategy Tester (Calendar API unavailable in backtest). Set spread to a realistic value of 15–30 points for EURUSD or 20–50 points for XAUUSD. A full trade log in CSV format is exported automatically to MQL5/Files at the end of every backtest run.
Changelog
v10.10 — Candlestick Pattern Library (8 patterns with scoring), Strategy 4 Pattern-at-Key-Level, Dynamic Lot Sizing (LOT_RISK_PCT mode), Session Open Blackout, Adaptive ADX Mode, Freeze Level modification guard, license display fix, EURUSD H1 default calibration.
v10.9 — INVALID_STOPS retry logic, modify throttle bug fix, netting account duplicate-entry guard, per-tick news cache, daily profit 1-second cache, MTF conditional handle creation.
v10.8 — Fill mode auto-detection with fallback, deal type filtering, trading halt flag, partial close at TP1, daily and global TP targets, news auto-resume, Pinbar and volume filters.
