Discussing the article: "From Evidence to Execution (Part 2): Turning MetaTrader 5 AI Strategy Logs into Robust Rule Based EA"

Check out the new article: From Evidence to Execution (Part 2): Turning MetaTrader 5 AI Strategy Logs into Robust Rule Based EA.

This article turns the Part 1 evidence into a working MQL5 Expert Advisor. It formalizes entry conditions, designs direction-aware stop loss and take profit, and stress-tests the combined logic before coding, with every rule linked to measured features. Readers receive a reproducible implementation with configurable inputs and per-bar execution consistent with the study.

In Part 1 we argued that Expert Advisors drift away from the strategies that inspired them because developers start coding before they understand how their own rules behave. Instead of writing the EA first, we built a logger that watched the market and recorded what the strategy would have seen without ever placing a trade. We ran it on GBPUSD M15 during the Tokyo session from January 2025 through August 2026. It produced 419 fully measured breakout events. Each event had 61 columns: 39 known at breakout time and 22 available only in hindsight.

The nine analysis phases contradicted most of our assumptions. Volume confirmation did not separate winners from losers in this dataset. Breakout candle size, range size, ATR level, and time of day were similarly inert. Most signal came from two features: range location relative to prior-day structure on the breakout side, and breakout candle body cleanliness. The strongest separators—retest depth and whether the retest held—were post-entry by construction, so they are useful for management but not for selection. In this article we are turning that evidence into working code. We continue the same conversation with the MetaTrader 5 AI Assistant where Phase 9 left off, carry it through three more phases, and then write the Expert Advisor.

Author: Hlomohang John Borotho