Skip to content
All library documents

MACD Crossover Strategy with EMA Trend Filtering

Article Strategy library · Author: ChaoZhang

Summary

This strategy combines MACD crossover signals with a moving average filter. It describes entering long when price crosses above an EMA as MACD crosses upward into positive territory, and entering short when price moves below the EMA as MACD crosses downward into negative territory. It also proposes stop loss and take profit rules, though the document does not specify their levels.

The written explanation identifies signal lag, false signals, and excessive trading as risks, and suggests parameter tuning, adding indicators, and limiting trade frequency. The source code differs from the prose: it uses a 5-period EMA rather than the stated 34-period EMA, includes histogram thresholds in some entries, and exits when the histogram changes sign. A BTC/USDT futures backtest interval is listed, but no performance results are provided, so the strategy’s effectiveness is not established.

Key ideas

  • MACD and signal-line crossovers provide the primary directional signals.
  • The prose uses a 34-period EMA to filter long and short trades by price direction.
  • The source code instead applies a 5-period EMA and includes histogram conditions.
  • The document flags lagging signals, false positives, and overtrading as risks.
  • No backtest performance figures are reported.

Tags

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