Skip to content
All library documents

MACD Oversold Long Strategy with Signal-Line Exits

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses MACD to seek long entries when momentum is weak, aiming to benefit from a rebound. Its description says to enter when MACD is below its signal line and below a negative threshold, then exit after the lines cross upward. The supplied settings use the conventional fast, slow, and signal lengths, with options to calculate the oscillator or signal line using simple averages instead of exponential averages.

The source’s actual entry condition is an upward MACD crossover while MACD is below the threshold, which is more specific than simply remaining below the signal line. Its exit condition is coded as a crossover between MACD and the histogram, so it does not cleanly match the prose description of a signal-line crossover. The material offers no backtest results or evidence of profitability. It flags failed reversals and parameter sensitivity as risks, and suggests testing parameter choices, holding periods, and stop-loss rules.

Key ideas

  • The strategy seeks long entries on an upward MACD crossover when MACD is below a negative threshold.
  • The written description proposes exiting when MACD crosses above its signal line, while the code uses a different crossover condition.
  • Fast, slow, and signal smoothing lengths are configurable, as are the averaging methods.
  • The approach assumes an oversold reading may precede a rebound, so persistent weakness can lead to losses.
  • No empirical results are provided, and the text recommends testing parameters and adding stop protection.

Tags

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