Adaptive Martingale
- Experts
- Mr Theera Mekanand
- 버전: 1.3
Adaptive Martingale is a trend-following martingale grid Expert Advisor designed for XAUUSDc (Gold Cent Accounts). This EA combines Hull Moving Average (HMA) trend detection with volatility protection, tailored for gold's price characteristics while incorporating risk management features for precious metals trading.
Designed for cent accounts, this EA works with gold's liquidity and trending characteristics. The "Adaptive" name reflects the EA's approach: real-time adjustment to gold's volatility through ATR-based grid spacing and circuit breaker protection.
Why Gold for Grid Trading
Gold (XAU/USD) has characteristics relevant to grid trading strategies:
- High volatility with frequent grid-level triggers
- Trending behavior across multiple timeframes
- 24-hour liquidity across major trading sessions
- Cent account compatibility for smaller deposit sizes
- Relatively consistent ATR patterns across sessions
Key Features
1. Gold-Focused Trend Detection
- Hull Moving Average (HMA) on M30 timeframe (150 period)
- Detects directional moves and switches between BUY and SELL modes
- Trend flip protection reduces exposure against reversals
- Calibrated for gold's swing patterns and momentum characteristics
2. Adaptive ATR-Based Grid Spacing
- Grid distance adjusts automatically based on real-time volatility
- Pre-calibrated for XAUUSDc typical ATR range (2.5–5.0)
- Reduces premature triggering during normal gold fluctuations
- Wider spacing during volatile sessions, tighter during consolidation
- Handles gold's varied daily ranges
- Updates every M5 bar close for continuous adjustment
3. Volatility Circuit Breaker
- Detects abnormal spikes during major economic releases (NFP, FOMC, CPI)
- Blocks new entries during detected volatility events
- Configurable cooldown period after spike detection
- Dual detection: both closed-bar and live-bar spike monitoring
- Designed to reduce exposure during rapid price movements
4. Trading Hours Configuration
- Pre-configured session windows for gold trading
- Default: 23:00 UTC to 22:00 UTC (near 24/5 trading)
- Friday cutoff at 22:00 UTC to reduce weekend gap exposure
- Weekday filtering available for session-specific approaches
- Covers gold's most liquid periods
5. Risk Management for Cent Accounts
- Daily threshold: stops trading after reaching configurable target
- Global weighted average take-profit system
- Configurable lot multiplication (default 2.0x)
- Optional hedge positions when grid extends beyond threshold
- Position count limits and emergency stops
- Visual tracking overlay
6. Visual Interface
- On-chart daily threshold display
- Global take-profit line visualization
- Real-time circuit breaker status monitoring
- Trend direction and cycle status display
- Order count and dynamic distance tracking
- Daily threshold notification overlay
- Full transparency of EA state
7. Magic Number System
- Separate magic numbers for BUY/SELL main and hedge positions
- Supports multiple instances on different accounts
- Clean position tracking and management
- No conflicts with other EAs
