Skip to content
All library documents

EMA Crossovers with MACD Confirmation for Trend Following

Article Strategy library · Author: ChaoZhang

Summary

This strategy combines a 9-period and 21-period exponential moving average crossover with MACD confirmation to identify potential trend changes. A bullish crossover can trigger a long entry when the close is above the slower average, while a bearish crossover can trigger a short entry when the close is below it. The description says MACD crossovers on both 1-hour and 4-hour timeframes provide additional confirmation, though the supplied source code only implements the EMA conditions and does not include MACD calculations.

The published settings specify a 1% stop loss and a 2% profit target, and provide BTC/USDT futures backtest dates and intervals without performance results. The document cautions that both indicators lag and may whipsaw in volatile or ranging markets. There is also an implementation limitation: the shown exit call is attached only to the long entry, and the stop and target prices are recalculated from the current close rather than clearly fixed at entry. These gaps mean the description and code do not fully match, and the stated risk controls need careful verification before relying on them.

Key ideas

  • The described entry logic combines 9-period and 21-period EMA crossovers with MACD confirmation across two timeframes.
  • Long entries require a bullish crossover and a close above the slower EMA; short entries require the bearish counterpart.
  • The published risk settings specify a 1% stop and a 2% profit target.
  • The supplied source does not implement the described MACD confirmation and shows an exit rule only for long trades.
  • No backtest outcomes are reported, and lagging signals can whipsaw in ranging or volatile markets.

Tags

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