Skip to content
All library documents

Timed Channel Breakout Trading with Paired Stop Orders

Article MQL5 code base

Summary

This expert advisor trades a channel by placing two pending stop orders at its borders at a configured start time. Each order has a stop loss on the opposite side of the channel, and the method sets no take-profit level. At the configured end time, the EA closes open positions and cancels orders that have not triggered. The channel data are calculated inside the EA, so the separate channel indicator is not needed to run it.

The document lists configurable controls for trading hours, position size, slippage, stop spacing, environment updates, retries, and position identification. It reports a test on EURUSD hourly data using one-minute OHLC modeling over a stated historical interval, followed by optimization of the start and end hours; the reported best settings were 8 and 10. These results are limited to that instrument, period, and test mode. No performance metrics or out-of-sample validation are given, so the selected hours do not establish broader effectiveness.

Key ideas

  • The EA places stop orders at both channel boundaries during a configured trading window.
  • Stop losses sit on the opposite side of the channel, and the strategy does not use take-profit levels.
  • At the end of the window, open positions are closed and untriggered orders are removed.
  • The reported EURUSD hourly test used one-minute OHLC modeling and optimized the trading hours.
  • The document gives no performance metrics or out-of-sample results to support broader conclusions.

Tags

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