Skip to content
All library documents

Price Channels: Rolling Highs, Lows, and Midpoint

Article MQL5 code base

Summary

The document explains a price channel indicator built from the highest and lowest bar values over a configurable lookback. Its upper boundary tracks the maximum, its lower boundary tracks the minimum, and its middle line is the average of those two boundaries. The indicator also shows the current levels as price labels and identifies a signal type for trading decisions.

The only setting described is the number of bars used to calculate the channel extremes. This makes the lookback the main parameter for adjusting how quickly the channel responds to price changes. The document does not specify entry or exit rules, explain how signal types are generated, or provide performance evidence. A channel display alone therefore does not define a complete trading strategy; users would need to establish and evaluate their own decision rules.

Key ideas

  • The upper channel line is the highest bar value across the chosen lookback.
  • The lower channel line is the lowest bar value across the same lookback.
  • The middle line is the average of the upper and lower boundaries.
  • The bar count setting controls the window used to calculate channel levels.
  • The document describes displayed signal labels but does not explain their trading rules.

Tags

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