Skip to content
All library documents

Multi-Timeframe Moving Averages for Trend Signals

Article Strategy library · Author: ChaoZhang

Summary

The document presents a moving-average approach that compares averages calculated on different chart timeframes. Its example uses a faster average on the current chart and a slower average from a higher timeframe; crossing signals are intended to indicate directional changes. It describes configurable average types and lengths, optional display of a second average, and chart markers for crossovers. The general rationale is to combine the responsiveness of a shorter timeframe with the steadier direction suggested by a longer one.

A published BTC/USDT futures backtest configuration is included, but no results are reported. The text cautions that averages lag, lower-timeframe signals can whipsaw, and parameters may not transfer across instruments or sessions. The source code also diverges from the prose: its entries are triggered by a change in the displayed first average’s direction, while crossovers between two averages are used for plotted markers. Thus, the implemented trading rule is not the stated two-average crossover rule, and the backtest configuration alone does not establish effectiveness.

Key ideas

  • The described method compares moving averages calculated on different timeframes to infer broader trend direction.
  • The code offers several average types and allows a second average to be displayed with crossover markers.
  • Moving-average signals lag, and short-term changes can produce repeated reversals in ranging markets.
  • The source enters based on a change in the first average’s direction rather than a crossover between two averages.
  • The published backtest settings contain no reported performance evidence.

Tags

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