Skip to content
All library documents

Developing Moving-Average Strategies with Distribution-Based Entry Rules

Article MQL5 articles

Summary

This article develops trading strategies from moving-average relationships, beginning with the difference between price and a simple moving average. Rather than entering on every zero crossing, it proposes studying the historical distribution of that difference and using extreme thresholds for entries, with separate thresholds for exits. The rationale is that an uneven, skewed distribution may make extreme deviations more informative than the conventional crossing rule. It then extends the idea to two moving averages, using the longer average to represent the broader trend and the shorter one to identify changes, and discusses filters based on the shorter average's direction.

Further variations combine several moving averages through finite-difference coefficients, while the article cautions that adding averages ultimately produces another oscillator and many parameter choices. It reports a EURUSD hourly test for one simple strategy and a table comparing results with and without a directional filter; in that example, the filter lowered reported net profit and other performance measures. These are specific historical test results, not evidence of out-of-sample robustness. The article stresses consistency among strategy rules, risk controls, and exits, and treats testing as a way to examine tradeoffs and parameters.

Key ideas

  • Price-minus-average differences can be studied as a historical distribution instead of traded only at zero crossings.
  • The proposed simple strategy enters at extreme deviations and exits at separate thresholds as price and average converge.
  • A pair of moving averages can separate broad trend context from shorter-term changes.
  • A directional filter can reduce the number of trades while also changing measured performance.
  • Finite differences combine multiple moving averages, but additional averages still define a single oscillator with more parameters.
  • The reported tests are examples for particular settings and do not establish durable performance.

Tags

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