Problem
An FX/CFD strategy is not a trading platform. Pricesearcher needed to connect research and backtesting to MetaTrader 5 execution, account risk controls, history collection and operational reporting so live setups could be monitored and reviewed.
Constraints
The MT5 connector runs alongside a Windows terminal; markets have closed hours, symbols can overlap across strategies, and a trade must be attributable to its setup. Research results alone cannot establish that live execution will behave the same way.
Solution
MQL5 Expert Advisors ran inside MT5; a Python/FastAPI engine used the MT5 connector on a Windows VPS. S3 held trade-history exports, the OHLCV pipeline supplied research bars, and AWS monitoring sent alerts to Slack. An internal dashboard exposed strategy, account and commission views.
My Role
I worked on scalping, mean-crossover and statistical-arbitrage Expert Advisors. I built the Python engine with bar-driven ML signals and an ATR-wick strategy, plus batch backtesting, equity/drawdown analysis, trade-history exports, configuration and log synchronisation, heartbeat alerts and the dashboard. I explored zigzag and random-forest signals, reinforcement-learning tuning and Kelly-criterion sizing; those were research directions, not claims of profitable deployment.
Technologies
Python, MQL5, MetaTrader 5, FastAPI, scikit-learn, Ray/RLlib, AWS (S3, EC2, Lambda, CloudWatch).
Engineering Challenges
- Containing live risk: Separate demo/live configuration, market-hours checks, magic-number identification and symbol-overlap prevention reduced the chance that one setup would interfere with another.
- Execution is not a backtest: Expert Advisors handled bid/ask differences and trailing stop-loss/take-profit behaviour; backtest and equity analysis gave a way to inspect assumptions rather than treating signals as proof of returns.
- Observability outside a desktop terminal: Hourly S3 exports and CloudWatch-to-Slack heartbeats made trade and process state inspectable without relying solely on the VPS session.
Outcome
The platform connected configurable live execution to historical data, risk controls and operational reporting. This is evidence of building and operating the surrounding system, not a claim of trading returns or a guaranteed strategy edge.