AI Pro Trade Gold
- Experts
- Versione: 1.0
- Attivazioni: 5
AI Pro Trade Gold is a fully automated MetaTrader 5 Expert Advisor designed primarily for XAUUSD (Gold) on the M15 timeframe. It combines 7 embedded ONNX machine learning models with an online self-learning adaptation engine, multi-scale price structure analysis, and a 3-tier dynamic trailing stop system. All models are compiled directly inside the EA—no external DLLs, external files, or WebRequests are required.
This promotional price will change after 3 months. The list price is $2,000.
Recommended Setup
• Symbol: XAUUSD (Gold)
• Timeframe: M15 (Multi-timeframe confirmation on H1 and D1 is handled internally)
• Account Type: Hedging or Netting (Standard, ECN, or Cent)
• Leverage: 1:100 or higher recommended
• Minimum Deposit: Depends on broker minimum lot size and selected risk % (1.5% Fixed Risk per trade is set by default)
• Execution: Low-latency VPS recommended for 24/5 operation
Core Architecture & Trading Logic
1. Multi-Model ONNX Signal Engine
• K-Means Price-Pattern Classifiers (3 Models): Classifies normalized 100-bar price shapes across the current chart and H1 timeframe into 8-, 16-, and 32-cluster regimes.
• State-Transition Entry Trigger: Evaluates a 16x16 multi-timeframe state matrix and triggers only on meaningful cluster transitions, helping avoid repetitive entries during stagnant market phases.
• 2-Layer Transformer Encoder Filters (4 Models): Dedicated Buy and Sell Transformer models for two distinct market volatility regimes (Normal vs. Extended, measured via M15 SMA 245 / ATR 60). Each signal is scored across an 8x23 sequence of normalized price changes and multi-window Donchian channel positions.
2. Online Self-Learning & Adaptation Engine
• Contextual State & Session Bandit: Tracks exponentially decayed R-multiple expectancy across all 256 cluster states and 24 GMT hours. Consistently underperforming states or hours are temporarily placed into a cooldown state.
• Online Logistic Calibrator: Continuously calibrates Transformer logit thresholds using Stochastic Gradient Descent (SGD) with L2 prior regularization to prevent overfitting to short-term noise.
• Shadow Trading Recovery: Signals paused by cooldown or low calibration scores are tracked virtually as Shadow Trades. If market conditions shift and virtual performance recovers, the EA automatically lifts the cooldown without manual intervention.
• MAE/MFE Exit & Risk Adaptation: Monitors real Maximum Favorable Excursion (MFE) and Maximum Adverse Excursion (MAE) per cluster pair to adapt initial Stop Loss and trailing multipliers, while scaling position size within user-defined confidence bounds.
• Persistent Brain & Clean Backtesting: Learned state is saved locally in MQL5\Files\PrototypeAI_V3\ for live persistence, while Strategy Tester runs start cleanly by default to avoid look-ahead bias.
3. Risk Management & 3-Tier Trailing Exit
• No Grid / No Martingale: Every real position opens with a hard volatility-based Stop Loss (ATR H1 360).
• 3-Tier Trailing Stop:
- Tier 1: Linear regression channel boundary trailing (can tighten initial risk before break-even).
- Tier 2: Adaptive High/Low mean trailing guided by the 32-cluster K-Means classifier.
- Tier 3: Momentum-weighted ATR trailing derived from multi-scale ZigZag wave and regression features.
• Account Protection Guards: Includes Fixed Risk %, Fixed Lot, Fixed Margin %, and Size Optimized modes, plus Daily Loss Limit %, Max Spread filter, optional Breakeven, and Auto-GMT session filtering.
4. Built-in Visual Dashboard & Shadow Trade Visualizer
• Real-Time Monitoring Panel: Displays account metrics, daily PnL, spread/risk guard status, K-Means clusters, market regime, Transformer raw vs. calibrated scores, online filter calibration table, and active MFE/MAE excursions.
• On-Chart Shadow Markers: Optionally plots virtual Shadow Trade entries, trailing virtual stops, and closed R-multiple outcomes directly on the chart for transparent evaluation.
Key Input Groups
• General & Symbol Settings: Magic Number, Order Comment, Trade Direction (Buy/Sell/Both), Max Positions per Direction.
• AI Signal & Regime Settings: Base Transformer Threshold, Regime 2 ATR Multiplier, Startup Transition Wait.
• Self-Learning Engine: Enable/Disable Online Learning, EMA Forgetting Factor, SGD Learning Rate, L2 Regularization, Cooldown Bars, Lot Scaling Bounds.
• Shadow Trading & Logging: Enable Shadow Trading, Shadow Horizon Bars, CSV Experience Export.
• Money Management & Risk Protection: Risk Mode, Risk/Margin %, Max Daily Loss %, Max Spread Points.
• Entry, SL/TP & Trailing: Min Distance Filter, Stop Loss ATR Multiplier, Take Profit ATR Multiplier (0 = Trailing Exit), Breakeven & Tier-3 ATR Trailing settings.
• Visual Dashboard: Toggle Dashboard, Position/Font Size, On-Chart Shadow Trade Markers.
Risk Disclaimer
Trading leveraged financial instruments such as Forex and Gold (XAUUSD) involves significant risk of loss and may not be suitable for all investors. Past performance—whether live, demo, or in Strategy Tester backtests—does not guarantee future results. No trading robot or machine learning model can guarantee profits or eliminate losses. Always test thoroughly on a demo account before deploying live capital, and never trade with money you cannot afford to lose.
