Sentinel X Gold EA with AI Analysis MT5
- Experts
-
Rabi Oudani
Professional developer of AI-driven algorithmic trading systems for MetaTrader environments, focused on execution precision, market logic, and disciplined risk engineering.
All systems are engineered with:
Structured, rule-based trade logic
Real market condition validation - Version: 1.82
- Mise à jour: 1 septembre 2026
- Activations: 10
Sentinel X AI - Gold XAUUSD Breakout EA with AI Brain | MT5
Sentinel X AI is an automated trading system for MetaTrader 5 that combines a battle-tested H1 breakout engine with an OpenAI-powered analysis module. The dual-engine design gives you the best of both worlds: a deterministic breakout strategy that runs locally without internet, plus an optional AI brain that adds discretionary context when the market warrants it.
Built primarily for Gold (XAUUSD) but fully compatible with any major FX pair or index, Sentinel X AI is designed for traders who want institutional-grade execution with full transparency on every decision. The breakout engine is the foundation — it works offline, on a VPS, on demo, on a slow connection. The AI layer is the optional upgrade for traders who want a second opinion on the trade.
How It Works
The EA runs two independent systems that share the same chart but never interfere with each other.
The Sentinel-X breakout engine is a pivot-based range detection system. It watches the last 40 H1 bars, identifies the high and low of the consolidation zone, and waits for price to break out with confirmation from the closed candle. Once a breakout is detected, the engine fires the trade with ATR-based stops and targets. Every parameter is configurable: pivot length, ATR multiplier, TP/SL ratio, spread filter, ATR minimum, and per-candle guard.
The Sentinel-IA AI brain is an optional second system. When internet is available, the EA sends structured market data to an OpenAI GPT model and receives back a confidence-weighted decision. The AI can place new trades, manage existing positions, or sit on its hands when the setup is unclear. It is fully autonomous — it can KEEP, MODIFY, CANCEL, or ACTIVATE pending orders, and HOLD, MODIFY_SL, or MODIFY_TP on live positions.
The two systems use separate magic numbers (Sentinel-X = 8889, Sentinel-IA = 8999) and separate order comments (Sentinel-AIL for live, Sentinel-AIP for pending), so every trade is traceable in your account history at a glance.
Key Features
- H1 breakout detection with pivot-length and ATR confirmation
- OpenAI GPT-powered market analysis (gpt-4o-mini by default)
- Dual order management with complete separation between systems
- Four AI confidence levels: Conservative 85%, Balanced 80%, Aggressive 75%, Very High 70%
- AI Trade Mode selector: Live+Pending, Pending Only, or Live Only
- Same-zone pending protection prevents stacking at the same price
- Watchdog validation against 7 local indicators (monitor-only)
- Market regime filter blocks AI trades in ranging conditions
- ATR-based, Fixed, and Hybrid TP/SL calculation modes
- Daily loss limit with automatic pause
- Consecutive loss pause with configurable cooldown
- Partial close at half-TP for early profit locking
- Spread filter with maximum pip cap
- News filter with high/medium impact selection and per-magic behavior
- ATR-based trailing stop plus step-based option
- Monday/Friday time filter for session safety
- Real-time dashboard panel with session, regime, and signal info
- Chart watermark with live version and status indicator
- HTTP 429 exponential backoff for API stability
- Strategy Tester focus mode (InpEnableAIInBacktest) for clean backtests
Market Structure and Confluence
Multi-timeframe analysis reads the H4 long-term trend via EMA200, the H1 primary trading timeframe for price action and ATR signals, and the M15 for momentum confirmation via EMA9 and RSI.
The strategy detection engine classifies the current market into one of six patterns: Liquidity Sweep, Fair Value Gap Displacement, Order Block, Trend Following, Breakout, or Momentum Scan. This classification feeds into the AI prompt and into the local confidence score.
The confluence layer reads RSI, MACD, Stochastic, ADX, Bollinger Bands, Ichimoku, Vortex, and Volume. It also tracks weekly and monthly pivots, previous day high and low, psychological round numbers, and the London Fix time.
Risk Management
Pre-trade validation runs five checks before any order is sent: confidence versus the adaptive threshold, spread versus the maximum allowed, margin availability, order count limits, and duplicate trade protection within the configured window.
Position sizing offers three methods: fixed lot size, percentage of account balance, or a balance-based multiplier with five risk profiles from Safe (0.01 per $1000) to Aggressive (0.01 per $100).
Drawdown protection includes a daily loss limit that auto-pauses the EA, a consecutive loss counter with configurable cooldown, a combined position cap across both trading systems, Monday and Friday session restrictions, and a configurable news-event blackout window.
Parameters
- Trading mode: EA only, AI only, or both active
- Magic numbers: Sentinel-X (8889), Sentinel-IA (8999)
- Lot sizing: Fixed, percent, or balance multiplier with 5 risk profiles
- AI limits: Max pending (2), Max live (1)
- TP/SL modes: Fixed, ATR-based, or Hybrid with manual caps
- Trailing: ATR-based or step-based
- News filter: High or medium impact, configurable stop period
- Daily protection: Loss percentage, max trades per day
- Partial close: 50% at half-TP for early profit lock
- Panel: On/off, position, scale preset, minimizable
Requirements
- MetaTrader 5 build 3660 or later
- ECN broker with tight spreads recommended
- Hedge account type recommended (netting supported)
- VPS recommended for 24/5 operation
- WebRequest permission for https://api.openai.com — required only for the AI brain. The breakout engine works completely offline.
Recommended Setup
- Symbol: XAUUSD (primary)
- Timeframe: H1 MORE SAFE BUT CAN USE 30M OR 15M
- Account: Hedge (netting also supported)
- Starting balance: $100 minimum, $200+ recommended
- Risk profile: Start with NORMAL or MEDIUM, scale up after live verification
- Broker: Low-spread ECN with fast execution
Support
- Telegram: @Darkmindea
- User guide: https://www.mql5.com/en/blogs/post/767898
- Product page: https://www.mql5.com/en/market/product/167360/
- Developer: OUDANI RABI
Risk Disclaimer
Trading foreign exchange and gold carries substantial risk and is not suitable for every investor. Past performance, whether real or backtested, does not guarantee future results. The AI analysis module relies on third-party API responses that may be unavailable, delayed, or inaccurate. You are responsible for evaluating whether this EA fits your risk tolerance, account size, and trading objectives. Always begin with a demo account, monitor live performance closely, and never trade with capital you cannot afford to lose.
Version History
v1.81 — Backtest focus and parser fix
Fixed false WARN entries for valid MARKET orders where the AI correctly returns entry_price=0. Added the InpEnableAIInBacktest toggle (default OFF) so the Strategy Tester demonstrates a single focused strategy for MQL5 marketplace review. Cleaner focus, one demonstrable engine per backtest.
v1.80 — Pre-computed bias and modern panel
Bias score and trade readiness are now pre-computed before each AI call. Watchdog rewritten to monitor-only so it no longer double-vetoes signals. Modern panel design with 6-tier font scale and cyber-finance palette.
v1.07 — Position tracking and stop distance
Position array extended to 200 slots with overflow warning. Minimum broker stop distance is now enforced. Pending orders are auto-corrected against the current market before submission.
v1.05 — Watchdog and regime
Watchdog validation against 7 local indicators added. Market regime filter introduced (TREND, RANGE, VOLATILE). AI confidence modes added: Conservative, Balanced, Aggressive, Very High.
v1.04 — Stability and safety
AI Trade Mode selector added (Live+Pending, Pending Only, Live Only). Same-zone pending order protection added. Selective news close now respects per-magic limits.

Rabi has been very supportive! I have been running Sentinel X for a week, and the new update has improved the EA performance much more. Strategy is safe and unique. Looking forward to the incoming results!