Skip to content
All library documents

A Sliding High-Low Channel Indicator with Trend-Colored Candles

Article MQL5 code base

Summary

This document describes a chart indicator that marks candles extending beyond a sliding channel formed from recent highs and lows. Candles outside the channel receive different fill colors depending on whether their movement agrees with or opposes the prevailing trend. The upper and lower channel boundaries can be configured independently, including their lookback ranges, shifts, and rounding precision; a separate setting moves the display horizontally.

The description explains the indicator’s visual behavior and configurable inputs, but it does not define how the trend is determined, specify a trading entry or exit rule, or provide performance evidence. It therefore serves as a description of a technical charting tool rather than a validated trading system. A trader considering it would need to establish signal interpretation and test it across instruments and market conditions before drawing conclusions about its usefulness.

Key ideas

  • The indicator highlights candles that extend beyond a channel derived from recent highs and lows.
  • Candles are colored according to whether their move agrees with the trend.
  • The upper and lower channel calculations have separate lookback, shift, and rounding settings.
  • The document gives no trend formula, trading rules, or backtest results.

Tags

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