Codex GoldeX
- エキスパート
-
Zsolt Hevesi
MQL5 / MT5 Expert Advisor Developer | EA Fixes, XAUUSD, Backtesting & Optimization
I help traders and EA owners develop, fix, modify and test MetaTrader 5 Expert Advisors. - バージョン: 1.0
- アクティベーション: 5
CodeX Goldex is an automated Expert Advisor developed specifically for Gold / XAUUSD trading.
The EA is designed to operate on an H1 chart using its default configuration. It analyses market structure, identifies breakout levels and manages entries with pending orders. Stop Loss and trade management are dynamically adjusted using volatility-based calculations.
CodeX Goldex does not use grid or martingale position sizing. The default fixed trading volume is 0.01 lot, while percentage-based risk management is also available.
Recommended environment
- Symbol: XAUUSD / Gold
- Recommended chart: H1
- Default structure timeframe: H1
- Default fixed volume: 0.01 lot
- No grid
- No martingale
- Order type: Buy Stop / Sell Stop
- Platform: MetaTrader 5
- Broker symbol suffixes such as XAUUSD.r , XAUUSDm or similar are supported.
No external SET file is required. The tested configuration is already included in the EA as the default parameter set.
Main features
- Automated XAUUSD breakout strategy
- Higher-timeframe market structure analysis
- Automatic detection of relevant breakout levels
- Buy Stop and Sell Stop order placement
- ATR-based Stop Loss calculation
- Adaptive trade management
- Separate scalp and runner exit logic
- Fixed lot or percentage-based risk management
- Maximum spread protection
- Broker Stop Level and Freeze Level handling
- Margin availability checks before order placement
- Pending order expiration management
- Friday pending-order protection
- Independent BUY and SELL controls
- Support for broker-specific XAUUSD symbol suffixes
2026 historical backtest
The reference historical test was performed using MetaTrader 5 Strategy Tester with historical real tick data provided by FP Trading LLC.
Reference test configuration:
- Broker: FP Trading LLC
- Symbol: XAUUSD.r
- Tester timeframe: M5
- EA structure timeframe: H1
- Test period: 2026.01.01 – 2026.09.12
- Modelling: Every tick based on real ticks
- History quality: 100%
- Initial deposit: $100
- Leverage: 1:500
- Fixed volume: 0.01 lot
- No grid
- No martingale
The reference report was generated from 100% real-tick historical data.
Reference backtest results
- Initial Deposit: $100
- End Balance: $649.69
- Total Net Profit: +$549.69
- Profit Factor: 1.83
- Total Trades: 446
- Profitable Trades: 74.22%
- Maximum Equity Drawdown: $41.51 (6.09%)
- Largest profitable trade: $17.90
- Largest losing trade: -$12.36
- Maximum consecutive losses: 4
- Average position holding time: 2 minutes 38 seconds
These values come directly from the MetaTrader 5 Strategy Tester report.
Small account historical test
The reference backtest was started with only $100 initial capital and a fixed 0.01 lot size. During the tested period, the maximum equity drawdown recorded by the Strategy Tester was $41.51 (6.09%).
This demonstrates that the EA was technically able to complete the tested historical period under those specific broker, leverage and market conditions with a $100 starting balance.
However, $100 should not be interpreted as a guaranteed or universally recommended minimum deposit.
Margin requirements, leverage, spread, slippage, execution quality, contract specifications and Gold volatility may differ significantly between brokers and market conditions. A larger account balance provides a greater safety margin.
Important risk information
Past performance does not guarantee future results.
All results presented above are historical backtest results only and are provided for informational purposes. They must not be interpreted as a promise, forecast or guarantee of future profitability.
Historical Strategy Tester performance cannot fully reproduce future live-market conditions.
Live trading results may differ significantly due to:
- changing market volatility,
- spread variation,
- slippage,
- execution delays,
- liquidity conditions,
- price gaps,
- broker-specific trading conditions,
- leverage and margin requirements,
- and differences in XAUUSD contract specifications.
Past performance is not a reliable indicator of future results. Backtest results are historical only and do not guarantee future performance.
Before using CodeX Goldex on a live trading account, testing the EA on a demo account with your own broker and trading conditions is strongly recommended.

