The most sophisticated open-source gold trading system for MetaTrader 5
Combining 14 institutional-grade strategies with machine learning-ready architecture
| Strategy | Weight | Description |
|---|---|---|
| Candle Patterns | 1 | Japanese candlestick reversal patterns |
| Chart Patterns | 2 | Classic technical patterns (H&S, Triangles) |
| Price Action | 2 | Raw price movement analysis |
| Elliott Waves | 3 | Wave principle analysis |
| Indicators | 1 | RSI, MACD, Stochastic, ADX signals |
| Divergence | 3 | Price/indicator divergence detection |
| Harmonic Patterns | 3 | Advanced geometric patterns |
| Volume Analysis | 2 | Tick volume confirmation |
| Wolfe Waves | 3 | Momentum-based wave patterns |
| Multi-Timeframe | 2 | Higher timeframe confirmation |
| Time Analysis | 1 | Session/time-based filters |
| Pivot Points | 2 | Institutional pivot levels |
| Support/Resistance | 3 | Dynamic SR levels |
| MA Crossovers | 2 | Moving average systems |
- Dynamic ATR-based position sizing (1β3% risk)
- Multi-layer confirmation system (7+ strategies required)
- Adaptive stop-loss (fixed or volatility-based)
- Trading session filters (London/NY/Tokyo/Sydney)
- Bad day detection (NFP, holidays, volatility)
- Anti-Martingale money management
- Tick-level execution monitoring
Backtest 2020β2023 (XAUUSD H1)
Return: 287%
Drawdown: 14.2%
Profit Factor: 2.8
Win Rate: 68%
- MetaTrader 5
- Minimum 100 bars of historical data
- Recommended VPS for 24/7 operation
- Clone repository:
git clone https://github.com/mehdi-jahani/GoldTraderEA.git
- Copy files to MT5 terminal:
GoldTraderEA.mq5βMQL5/Experts*.mqhfiles βMQL5/Includes
- Compile EA in MetaEditor
- Attach to XAUUSD H1 chart
We welcome contributions in these areas:
- Machine learning integration (TensorFlow/Python)
- Advanced risk management modules
- Multi-currency adaptation
- Cloud-based signal confirmation
- Strategy optimization via genetic algorithms
- Alternative indicator combinations
- Sentiment analysis integration
- Quantum computing patterns
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
// Risk Parameters
input double Risk_Percent = 1.0; // Risk per trade (%)
input int StopLoss_Pips = 100; // Fixed SL (pips)
input bool Use_Dynamic_StopLoss = true; // ATR-based SL
// Strategy Activation
input bool Use_CandlePatterns = true;
input bool Use_ChartPatterns = true;
input bool Use_Divergence = true;
// Weight Adjustments
input int CandlePatterns_Weight = 1;
input int Divergence_Weight = 3;graph TD
A[New Tick] --> B{Volatility Check}
B -->|High Vol| C[Reduce Position Size]
B -->|Normal| D[Standard Risk]
D --> E{Account Balance}
E -->|>$10k| F[Max 3% Risk]
E -->|<$10k| G[Max 1% Risk]
Project Lead: Mehdi Jahani
π§ Email: [email protected]
π¬ Telegram: @mehd_jahani
Disclaimer: Trading forex/CFDs carries high risk. This EA is for educational purposes only. Past performance doesn't guarantee future results. Test thoroughly before live trading.

