Skip to content
All library documents

Moving Average Channel Reversal EA with Optional Grid Modules

Article MQL5 code base

Summary

This document explains an Expert Advisor that builds a channel around a moving average and opens a buy when price reaches the lower boundary or a sell at the upper boundary. A qualifying bar must touch the boundary after the preceding bar remained on the channel's interior side. Settings cover the moving average, channel width, initial lot sizing, take profit, stop loss, trailing stops, trading hours, and chart timeframe.

Optional modules add an opposite pending order near the main order's stop level, additional orders spaced in a grid against the trend, and a trading-time window. The author says the EA may earn only small profits and needs a large deposit, but provides no test results or supporting figures. The approach is therefore described as a rule set rather than demonstrated performance. The grid and countertrend components can increase exposure when price continues moving away from the average; the document does not explain safeguards or quantify that risk.

Key ideas

  • The EA trades price touches of upper and lower boundaries around a moving average.
  • A prior bar must remain inside the relevant boundary for a new touch to qualify.
  • Optional modules add reversal orders, grid orders, and time restrictions.
  • Lot size can be fixed or adjusted using account balance and a risk percentage.
  • The document gives no performance data and warns that profits may be small relative to the required deposit.

Tags

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