Skip to content
All library documents

High-Low Flat Channel for Breakout Stop Placement

Article MQL5 code base

Summary

The High Low Flat Channel indicator identifies a price range in which the period’s high and low fall within specified boundaries. When a qualifying range is found, the indicator expands the high and low by a padding amount and draws channel boundaries. An optional setting carries forward the prior bar’s channel boundaries when a channel was present there.

The stated use is to locate levels for stop orders triggered by a breakout from a flat range. The description gives the calculation steps and a practical limitation: on larger timeframes, a range setting that is too small may prevent the indicator from finding and displaying qualifying formations. It does not specify validated parameter values, a breakout confirmation rule, or performance evidence, so the channel serves as a reference for constructing a trading approach rather than proof of a profitable strategy.

Key ideas

  • The indicator checks whether a period’s high and low fit within a specified range.
  • It adds or subtracts padding to create the channel boundaries.
  • A setting can preserve boundaries from the previous bar when a prior channel exists.
  • The described use is placing stop orders for breaks from flat price ranges.
  • Small range settings may fail to produce signals on larger timeframes.

Tags

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