Skip to content
All library documents

MACD and Bollinger Band Signals for Trend Trading

Article Strategy library · Author: ChaoZhang

Summary

This strategy applies Bollinger-style bands to a MACD series and uses crossings of the band boundaries to generate directional signals. The described setup uses a moving-average difference as the MACD series, calculates a rolling basis and standard-deviation bands, and treats a move back above the lower band as a long signal and a move back below the upper band as a short signal. The text says entries should wait for a pullback toward the middle line, while the supplied code enters directly on the boundary-crossing conditions. Published settings include fast and slow periods, a band length, and a multiplier; backtest settings specify BTC/USDT futures over a stated date range.

The document frames the method as a medium- to long-term trend approach and identifies choppy markets, false breaks, parameter sensitivity, and deep pullbacks as risks. It recommends position control, stop losses, and further confirmation, but reports no performance statistics. The narrative’s pullback-entry description is not implemented in the shown code, which also does not include explicit stop-loss logic, so the stated risk controls should not be assumed to be part of that implementation.

Key ideas

  • The method builds rolling bands around a MACD moving-average difference.
  • A crossing back above the lower band signals long, while a crossing below the upper band signals short.
  • The narrative describes waiting for a middle-line pullback, but the code enters at the boundary signal.
  • The document warns that ranging markets and poorly chosen parameters can produce false signals.
  • No performance statistics or explicit stop-loss implementation are provided.

Tags

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