MT5 Custom Bot Strategy
Developed a custom trading strategy on MetaTrader 5 (MT5) for XAU/USD, integrating technical indicators, risk management logic, and automated trade execution.

The Challenge
Gold trading via XAU/USD is highly volatile and sensitive to macroeconomic events, making it one of the most challenging instruments for consistent algorithmic performance. The client had attempted several off-the-shelf EA strategies but found them brittle in changing market conditions and lacking meaningful risk management beyond basic stop-loss settings. They needed a custom strategy built around their specific risk appetite, preferred timeframes, and return targets.
Our Approach
We conducted a thorough analysis of XAU/USD price behaviour across multiple timeframes and market regimes before designing the strategy logic. The bot was built using a combination of momentum, mean-reversion, and volatility-adjusted positioning techniques, with each component rigorously backtested against five years of tick data. Risk management was designed as a first-class system component with dynamic position sizing, correlated-exposure limits, and session-aware execution filters.
Key Features
The MT5 bot includes a multi-indicator entry signal engine combining RSI, ATR volatility bands, and trend confirmation filters, dynamic position sizing based on real-time account equity and volatility, session filtering to avoid low-liquidity trading windows, automated trade execution with partial take-profit logic, and a dashboard for real-time performance monitoring and strategy parameter adjustment.
Impact & Results
In live deployment, the strategy delivered consistent positive expectancy across both trending and ranging XAU/USD conditions, with maximum drawdown well within the client's specified tolerance. The automation eliminated emotional trading decisions and ensured execution at optimal signal points 24 hours a day, capturing moves that manual trading would have missed during out-of-hours sessions.
What's Next
The next phase of development will incorporate a machine learning layer that adapts indicator weightings in response to evolving market regime classification, moving the strategy beyond static parameter sets. Expansion to additional instruments including major forex pairs and silver is planned, with shared risk management logic across the portfolio to prevent correlated drawdowns.