Skip to content
All library documents

Detecting Breakouts with a Rolling 20-Candle Price Channel

Article MQL5 code base

Summary

The Channel20 indicator calculates the highest and lowest prices across a configurable lookback window, initially set to 20 candles. These levels form a price channel. A move beyond the channel is proposed as a way to detect the start of a new tendency, making the idea a basic range-breakout signal.

The document presents the channel concept and notes that the indicator source is split between the indicator and a supporting library. It provides no backtest, market selection, trade-management rules, or evidence about false breakouts and performance across different lookback lengths. A channel break can flag a potential change in direction, but the description does not establish whether a break should trigger an entry or how to manage risk. Results may depend on the instrument, timeframe, and chosen window.

Key ideas

  • The channel boundaries are the highest and lowest prices over a configurable lookback.
  • The default lookback is 20 candles.
  • A price move beyond a boundary is proposed as a signal of a possible new trend.
  • The description provides no tested performance or rules for managing breakout trades.

Tags

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