Skip to content
All library documents

Combining MACD and Moving Average Crossovers for Long Entries

Article Strategy library · Author: ChaoZhang

Summary

This document presents a long-only approach that combines MACD and simple moving averages. The described rules use a MACD line and signal line alongside short and longer moving averages: bullish alignment is intended to open a long position, while bearish crossovers are intended to close it. The stated example settings use the conventional fast, slow, and signal lengths, with optional simple or exponential smoothing.

The source and accompanying explanation are not fully consistent: the prose calls for both bullish signals to align, but the code structure appears to test whether MACD is above its signal when the moving-average crossover occurs, and similarly checks the opposite condition for exits. The published test covers a brief BTC/USDT futures interval but provides no performance metrics. The notes identify parameter sensitivity and the inability to profit from short signals; implementation details and actual behavior should be verified before evaluation.

Key ideas

  • The proposed strategy combines MACD crossover information with a crossover between two moving averages.
  • The written entry rule calls for bullish confirmation from both indicators, and the exit rule calls for bearish confirmation.
  • The approach is long-only and cannot capture short-side opportunities.
  • The source code and prose may differ in how they combine the indicator conditions, so the exact rules need checking.
  • The published BTC/USDT futures test settings contain no reported outcome statistics.

Tags

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