Skip to content
All library documents

MACD DIF–DEA Crossover Signals for Long and Short Trading

Article Strategy library · Author: ChaoZhang

Summary

This note explains a MACD crossover strategy built from a fast EMA, a slow EMA, and an EMA signal line. A DIF cross above DEA opens a long position; a cross below closes the long and opens a short. The MACD histogram is also calculated and displayed, but the stated trade rules use the DIF–DEA crossovers. The listed defaults are a 12-period fast EMA, 26-period slow EMA, and 9-period signal line.

The document reports a BTCUSDT backtest with an approximately 40% win rate and an annualized return of 1.05, but gives no fuller performance context. It also says the implementation can make the amount of assets held grow continuously, limiting its use as a standalone arbitrage strategy. Choppy conditions may trigger repeated trades and costs, and the strategy lacks stop-loss and position-sizing rules. Suggested improvements include trend filters, parameter testing, risk controls, and confirmation from other analysis.

Key ideas

  • A DIF crossover above DEA triggers a long entry, while a cross below triggers a short entry after closing the long.
  • The strategy derives DIF from fast and slow EMAs and derives DEA as an EMA of DIF.
  • The document reports an approximately 40% win rate and a 1.05 annualized return for BTCUSDT, without broader evaluation details.
  • Frequent signals in sideways markets, growing asset exposure, and missing risk controls are cited as limitations.

Tags

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