Skip to content
All library documents

Dual Moving-Average Crossovers for Trend-Following Trades

Article Strategy library · Author: ChaoZhang

Summary

The strategy uses a fast and a slow moving average to follow directional moves. A cross of the fast average above the slow average opens a long position, while a cross below opens a short position. The description also gives exit rules based on price or the faster average crossing back through the slower one, and offers configurable average lengths, SMA or EMA choices, and a bar-offset setting for delayed close checks.

The source includes a configurable date window and defaults for the average lengths, but the document provides no results or comparative tests. The prose presents EMA as more responsive to turning points and warns that either form can whipsaw in range-bound markets. This makes the approach most directly suited to persistent trends; parameter choices can materially affect its behavior. The document recommends stop-loss discipline and position sizing, though it does not specify or implement a risk-sizing method. Its explanation and code describe crossover mechanics rather than demonstrating profitability.

Key ideas

  • An upward fast-average crossover signals a long entry, and a downward crossover signals a short entry.
  • The strategy allows each average to use either a simple or exponential calculation.
  • Exit checks can use recrossing conditions and an optional bar offset.
  • The strategy is vulnerable to repeated false signals when prices move sideways.
  • The document advises parameter tuning and risk controls but reports no test results.

Tags

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