Skip to content
All library documents

Moving Average Crossover Rules for Trend Following

Article Strategy library · Author: ChaoZhang

Summary

The document outlines a basic trend strategy that uses simple moving average crossovers to signal long and short positions. It describes using averages with several lookback periods to represent trends at different horizons, with a 20-period average crossing above a 50-period average as a buy signal and a 10-period average crossing below a 30-period average as a sell signal. The accompanying source code applies several crossover conditions, though its pattern labels do not consistently match the moving-average logic described in the prose.

The method is presented as easy to understand and adjustable, with trend conditions preferred over consolidating markets. The document identifies lag, parameter sensitivity, and excess signals as risks, and suggests adding indicators or stop-loss rules. It provides backtest configuration for BTC/USDT futures over January 2024, but no performance results, so it does not establish profitability or validate the proposed parameter choices.

Key ideas

  • A short moving average crossing above a longer one is treated as a potential long signal.
  • A downward crossover is used as a potential short or exit signal, depending on the rule.
  • Multiple moving-average periods can represent trends at different horizons.
  • Moving-average lag and sideways markets can produce delayed or unreliable signals.
  • The document gives backtest settings but reports no measured performance.

Tags

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