Skip to content
All library documents

EMA Crossover Trend Following with Stop Management

Article Strategy library · Author: ChaoZhang

Summary

This document explains a trend-following strategy that compares a faster EMA with a slower EMA. The stated defaults are 13 and 48 periods: a cross above the slower average opens a long position, and a cross below it closes the position. The source implements those crossover rules and allows pyramiding. It also exposes settings for an initial stop and a trailing stop, while the narrative describes risk controls as a way to limit losses and protect gains.

The material includes BTC-USDT futures backtest settings but gives no performance figures. There is an important implementation gap: although the source declares stop and trailing-stop inputs, the shown exit code uses a fixed stop based on average entry price and does not apply the trailing-stop settings. The narrative’s stated stop distances also differ from the source’s fixed calculation. As the document notes, crossover signals can lag and may give false entries in weak or choppy trends. The supplied configuration should be checked against the actual code before drawing conclusions about risk or results.

Key ideas

  • The strategy opens long when the fast EMA crosses above the slow EMA and closes on the reverse cross.
  • The stated default EMA periods are 13 and 48.
  • The source includes pyramiding and a fixed stop based on average entry price.
  • Declared trailing-stop settings are not used in the shown exit logic.
  • Lagging crossovers can produce late entries or false signals in choppy markets.

Tags

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