Skip to content
All library documents

Moving Average Crossovers Filtered by Bollinger Band Position

Article MQL5 code base

Summary

This expert advisor combines a fast and slow moving average with Bollinger Bands on the active symbol and timeframe. Signals and trailing actions are evaluated when a new bar appears. In the described rules, an upward moving average cross can trigger a buy when the prior close is below the lower band; a downward cross can trigger a sell when the prior close is above that band. A reverse option swaps the signal direction, and another setting can close positions opposing a new signal.

The document names EURUSD on an hourly chart, but gives no performance results, parameter values, risk controls, or comparison against a baseline. The sample rules are sparse and do not establish profitability; notably, both conditions refer to the lower band, which may be intentional but is not explained. The text describes configurable EA behavior rather than validated evidence for the strategy.

Key ideas

  • The advisor combines two moving averages with Bollinger Bands on the current instrument and timeframe.
  • Signals are checked when a new bar appears.
  • A moving average crossover is conditioned on the previous close being outside the lower band in the stated rules.
  • A reverse setting can invert the trade direction, and another setting can close opposing positions.
  • The document provides no test results or evidence of profitability.

Tags

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