Skip to content
All library documents

Filtering Trend Entries with Short- and Long-Term MACD Signals

Article Strategy library · Author: ianzeng123

Summary

This strategy combines two MACD histograms to align shorter-term entries with a longer-term trend. It describes long entries when the short-term histogram is positive and the longer-term histogram turns positive, with the inverse conditions for short entries. The indicators can use simple or exponential averages, and the document describes adjustable percentage-based stop-loss and take-profit levels, plus entry alerts.

The material gives default MACD settings and discusses risks including lag, rapid reversals, parameter sensitivity, and repeated false signals in ranging markets. It also warns that the stated default uses all account equity per trade, creating capital-management risk. While the document outlines the method and code behavior, it provides no backtest results or evidence that the approach is profitable. The code’s short-term condition checks whether the histogram is above or below zero, rather than explicitly testing a zero-line crossover as the prose describes. Suggested improvements include volatility-based stops, position sizing, additional filters, and market-state classification.

Key ideas

  • The strategy uses two MACD histograms to combine short-term entry direction with longer-term confirmation.
  • The document describes entries when the short-term histogram agrees with the long-term histogram’s direction.
  • The code checks the short-term histogram’s sign, while the prose describes a zero-line crossover.
  • Fixed percentage exits are described, but the default use of full account equity raises position risk.
  • MACD lag and range-bound false signals are key limitations, and no performance results are reported.

Tags

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