Skip to content
All library documents

Moving Average Crossover Trend-Following System

Article Strategy library · Author: ianzeng123

Summary

This system generates trend-following entries and exits from crossovers between fast and slow moving averages. A fast average crossing above the slow one signals a long entry; crossing below signals a short entry. Users can choose SMA or EMA calculations, select long-only, short-only, or two-way trading, and use preset or custom parameters. Presets are provided for hourly, four-hour, daily, weekly, and biweekly charts.

The document describes historical parameter optimization and visual trend coloring, but supplies no performance statistics or validation details to assess the claimed optimization. Its listed backtest settings use SOL–USDT on an hourly chart over several months. The source code sets position sizing and initial capital, but those settings alone do not demonstrate results. The article warns that moving averages lag, crossover systems can churn in sideways markets, and parameters selected on past data may fail as conditions change; it proposes trend, volatility, stop-loss, and volume filters as possible extensions.

Key ideas

  • Crosses between fast and slow averages determine long and short signals.
  • The system supports SMA or EMA calculations and three trading-direction modes.
  • Preset parameter sets are offered for several chart timeframes.
  • The document reports no performance statistics or validation evidence for its optimization claims.
  • Lag, sideways-market whipsaws, and changing market conditions are cited limitations.

Tags

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