Skip to content
All library documents

EMA Crossover Signals with a Relative Separation Threshold

Article Strategy library · Author: ChaoZhang

Summary

This long-only strategy uses a short-period EMA and a longer-period EMA to guide entries and exits. It also calculates the distance between the averages relative to their mean and applies separate thresholds to qualify bullish and bearish conditions. The text presents the EMA crossover as the core concept, while the supplied source code uses threshold conditions to enter and close positions, so the implementation and prose do not fully agree.

The document discusses the smoothing and responsiveness tradeoff, along with the lag and reversal risk of moving averages. It recommends tuning the EMA periods and thresholds, adding confirmation indicators, using stop losses, and considering staged entries. Published backtest settings specify BTC/USDT futures over a limited period, but no returns or other performance measures are reported. The threshold rules and sample code should therefore be treated as a strategy description rather than evidence of effectiveness.

Key ideas

  • A faster EMA is paired with a slower EMA to represent shorter and longer price trends.
  • A relative distance threshold is proposed to filter signals based on the separation of the averages.
  • The strategy description emphasizes crossovers, but the supplied code enters and exits on threshold conditions.
  • The document identifies lag, trend reversals, and poorly chosen parameters as risks.
  • The published backtest configuration reports no performance results.

Tags

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