Skip to content
All library documents

Moving Average Channel Breakouts for Trend Following

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses a simple moving average to form a channel and treats closes beyond the channel’s prior bounds as trend signals. A close above the previous upper band opens a long position; a close below the previous lower band opens a short position, reversing the existing direction. The stated default moving-average length is 20 periods, and the source allows the price input to be selected from several OHLC-based series.

The document describes the approach as a way to follow medium- to long-term moves, with simplicity and a limited parameter set as practical attractions. It provides no performance results, and the published backtest settings alone do not establish profitability. The method can lag turning points and may repeatedly reverse during sideways markets. Its claims about channel width and ongoing position adjustment are not fully reflected in the supplied code, which shows entries on breakouts but no explicit width control or separate exit rules. Any use would require testing costs, drawdowns, and robustness across market conditions.

Key ideas

  • The channel is formed from the highest and lowest values of a simple moving average over the selected lookback.
  • A close above the prior upper band signals a long entry, while a close below the prior lower band signals a short entry.
  • The strategy reverses direction when price breaks through the opposite channel boundary.
  • Moving-average lag and sideways-market whipsaws are stated risks, and no performance evidence is supplied.

Tags

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