Skip to content
All library documents

A Channel Breakout Expert Advisor and Lessons from a Trailing Stop Bug

Article MQL5 articles

Summary

In this championship interview, Andrey Voitenko describes an Expert Advisor that trades breaks from a horizontal price channel. It calculates channel boundaries from highs and lows over five minute bars, then places pending orders at the boundaries after price moves into the channel. The system aims to participate when price shifts from low to higher volatility. The interview also discusses position sizing, optimization, and the choice to use stop orders so the entry logic follows the channel levels.

Voitenko attributes a lost championship prize opportunity to a flawed trailing stop implementation that moved the stop too close to the market, closing positions before the system could retain profits. He says a later version used a classical trailing stop. He also recounts a substantial drawdown associated with sluggish price movement and repeated returns to the channel boundary. These are personal observations from one competition, not controlled evidence that the strategy generalizes. The account emphasizes implementation checks and risk management: a strategy's apparent performance can be materially affected by stop logic, lot sizing, and market conditions.

Key ideas

  • The EA defines a horizontal channel from recent highs and lows on five minute bars.
  • It places pending orders at the channel boundaries to trade a breakout.
  • The trader says an incorrectly implemented trailing stop closed positions too early.
  • Channel breakouts may struggle when price moves slowly and repeatedly revisits a boundary.
  • The interview's competition results are an individual experience, not evidence of general profitability.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.