Skip to content
All library documents

EMA Crossover and MACD Filtering with ATR-Based Exits

Article Strategy library · Author: ianzeng123

Summary

This trend-following system combines EMA crossovers, MACD confirmation, and ATR-based stop and target distances. It specifies EMA periods of 6 and 2, MACD settings of 18, 19, and 24, and a 13-period ATR multiplied by seven. A long entry requires the short EMA to cross above the long EMA while MACD is above its signal line and zero; the short setup reverses those conditions. Stops and profit targets are placed symmetrically around the entry using the ATR multiple.

The document argues that momentum confirmation may filter some crossover signals and that volatility-scaled exits adjust their distance as market conditions change. It also flags whipsaws in ranging markets, parameter sensitivity, possible overfitting, and uncertainty about the ATR multiple; it notes that the MACD fast and slow periods are close. Backtest settings describe BTC/USDT Binance futures over a two-day interval from August 2024 to March 2025, but no results are reported. The listed settings are unusual and the code calculates exits from close, so the described rules should be checked carefully before drawing conclusions.

Key ideas

  • Long and short entries combine a crossover of the 6- and 2-period EMAs with directional MACD confirmation.
  • The MACD filter requires the line to be on the appropriate side of both its signal line and zero.
  • Stops and targets use equal distances based on seven times a 13-period ATR.
  • The document warns about ranging-market losses, parameter sensitivity, and overfitting.
  • A BTC/USDT futures backtest configuration is supplied without performance results, and the exit implementation merits careful review.

Tags

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