Skip to content
All library documents

Flat-Channel Breakout Trading with Pending Orders

Article MQL5 code base

Summary

The Flat Channel expert advisor seeks breakouts after detecting a narrow or slowing market range. It places a pending order in anticipation of a move beyond the channel and sets the stop distance to twice the channel width. The description recommends EUR/USD on a 30-minute chart, but gives no performance record or evidence that this market and timeframe are profitable.

Its configurable inputs cover the minimum number of bars and permitted channel width, a standard-deviation averaging period, order lifetime, and weekday or time filters. Traders can choose fixed lots or automated money management with a risk percentage, and can enable a breakeven feature triggered by a specified price distance. These settings define the mechanics but do not provide full entry details, exit rules beyond the stop and breakeven options, or testing results. The approach may therefore need careful specification and validation before practical use.

Key ideas

  • The advisor detects a flat or slowing market and places pending orders for a channel breakout.
  • Its stated stop distance is twice the channel width.
  • Channel identification can be configured with bar-count and minimum and maximum width settings.
  • Time filters, pending-order lifetime, position sizing, and breakeven behavior are configurable.
  • The document recommends a currency pair and chart interval but reports no performance tests.

Tags

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