Skip to content
All library documents

Mean-Reversion Channel Using Rolling Price Extremes and a Moving Average

Article MQL5 code base

Summary

This document describes a channel indicator for identifying potential countertrend entries. It calculates the highest and lowest prices over a configurable lookback range, uses their midpoint as the channel center, and plots a simple moving average of closing prices with a configurable period. The channel therefore frames recent price extremes and a central reference level.

When price reaches an outer channel boundary, the indicator can inform a position in the moving-average direction or toward the channel center, depending on the trader's approach. The premise is that price may return toward an average after reaching an extreme. The text offers the indicator's construction and intended use but gives no entry thresholds beyond reaching an extreme, exit rules, risk controls, market-specific guidance, or performance evidence. It is a conceptual description of a possible mean-reversion aid rather than a tested standalone strategy.

Key ideas

  • The channel uses the highest and lowest prices over a chosen range, with their midpoint as its center.
  • A configurable simple moving average of closing prices is plotted alongside the channel.
  • Reaching a channel extreme may inform a countertrend entry toward the center or in the moving-average direction.
  • The document provides no performance evidence or detailed exit and risk rules.

Tags

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