Skip to content
All library documents

Moving Average Crossover Strategy with Configurable Filters

Article Strategy library · Author: ChaoZhang

Summary

This document outlines a trend-following system that uses crossovers between shorter and longer moving averages. Its stated example enters long when the 8-period average crosses above the 13-period average and enters short when it crosses below. The source allows different average types, including exponential and simple averages, and provides several optional periods and direction settings. The code conditions entries on the bar open relative to the prior value of the shorter average, so the implementation adds a price check to the crossover description.

The method is presented as a flexible way to follow trends, with optional indicators proposed to filter false signals. Risks include losses during prolonged adverse trends, poorly chosen periods, stop discipline, and trading fees. The document claims drawdowns may be smaller but gives no supporting performance data. Its published BTC/USDT futures test window is very short, and the settings do not establish the strategy’s reliability across markets or longer periods.

Key ideas

  • The described strategy buys when the shorter moving average crosses above the longer one and sells short on the reverse cross.
  • The published implementation uses the 13- and 21-period averages for its crossover conditions.
  • The source also checks the open against the prior value of the 13-period average before entering.
  • Users can select among multiple average types and enable different periods.
  • Costs, adverse trends, and parameter selection may affect results, and no performance statistics are provided.

Tags

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