Queen Markov AI
- 专家
- Panyanon Hankhampa
- 版本: 3.10
- 更新: 30 四月 2026
- 激活: 5
Queen Markov AI | XAUUSD M30 | Markov + Neural Network | True Hedging
Queen Markov AI is a fully automated Expert Advisor built exclusively for XAUUSD (Gold) on the M30 timeframe. It combines a D1 Markov Regime Detection system with an inline MLP Neural Network to identify high-probability entry opportunities in both directions simultaneously.
No external files. No DLL. No server connection. Everything runs self-contained inside the EA.
How It Works
The system operates in two layers:
Layer 1 — Markov Regime Engine (D1) The EA analyzes daily price structure using a 3×3 Markov Transition Matrix. It classifies market state as Uptrend, Downtrend, or Sideways based on ATR-normalized price movement. The transition matrix is continuously updated as new D1 bars close, capturing the probability of state changes over a 100-bar lookback window.
Layer 2 — MLP Neural Network (9 inputs → 40 hidden → 2 outputs) The 9 Markov matrix values become input features for a fully connected neural network trained using SGD backpropagation directly inside the EA. The network outputs independent probabilities for Long and Short signals. Retraining occurs automatically every 48 hours using recent D1 history. No pre-trained model is required.
Execution — True Hedging on M30 When model confidence exceeds the minimum probability threshold, the EA opens Long and Short positions simultaneously. This true hedging approach allows it to capture moves in both directions without waiting for the market to choose a side.
Key Features
- Self-contained: No Python, No ONNX, No external files — works on any broker
- True Hedging: Long and Short positions open simultaneously when conditions align
- Auto-retraining: Neural network retrains every 48 hours on live D1 data
- ATR-based SL, TP, and Trailing Stop — adapts to current volatility
- Compatible with all account types: Hedging and Netting
- Auto filling mode detection: FOK / IOC / RETURN — works on any broker
- Margin protection: skips trades when margin is insufficient
- Luxury dark gold dashboard with probability bars and real-time stats
- Click header to toggle panel on/off
Risk Management
- Risk per trade: 1.0% of balance (default, adjustable)
- Stop Loss: 2.0 × ATR(14) on M30
- Take Profit: 4.5 × ATR(14) on M30
- Trailing Stop activates at 1.5 × ATR profit
- Maximum 4 simultaneous positions
- Minimum entry distance: 1.0 × ATR between same-direction entries
Recommended Setup
| Parameter | Value |
|---|---|
| Symbol | XAUUSD (Gold) |
| Timeframe | M30 |
| Minimum Capital | $500 (Standard) |
| Broker Type | Any — Hedging preferred |
| Account Type | Hedging recommended |
Parameters
All key parameters are exposed as inputs for full optimization:
- Risk %, Max Lot, Min Lot
- ATR Period, SL/TP multipliers
- Trailing Stop activation and distance
- Minimum probability threshold (0.70 default)
- Maximum positions, minimum entry distance
- Markov lookback period
- Neural network: learning rate, epochs, retrain interval
- Dashboard position (X/Y offsets)
Important Notes
- Designed and optimized for XAUUSD M30. Other symbols may work but are not guaranteed.
- Backtest with real ticks and variable spread for most accurate results.
- The neural network requires at least 5 D1 bars of history to begin training. Allow a short warm-up period when attaching to a new chart.
- Works on both Standard and Cent accounts.
Developed by Panyanon Hankhampa — Made in Thailand
