Skip to content
All library documents

SMA Crossover Signals with Long-Term Price Confirmation

Article Strategy library · Author: ChaoZhang

Summary

The document presents a customizable trend-following framework using short- and long-period simple moving averages. It generates a candidate long signal when price crosses above the short SMA while positioned above the long SMA, and a candidate short signal on the converse move. The settings offer several SMA lengths, and the backtest configuration specifies BTC/USDT futures on Binance over a brief period in June 2024.

The accompanying description proposes volume, price action, and other indicators as possible confirmation tools, but the shown implementation does not calculate volume confirmation. There is also a logic inconsistency: it defines confirmation conditions that require two consecutive closes on the same side of the long SMA, yet orders are placed on the raw signal variables instead. Those raw signals also require the previous close to be on the opposite side of the long SMA, making the stated confirmation unlikely to occur as described. No performance metrics are provided, and the source has no explicit stop-loss; parameter sensitivity and whipsaws in sideways markets remain concerns.

Key ideas

  • The framework combines price crossings of a short SMA with location relative to a long SMA.
  • SMA periods are selectable from a set of short to long lookbacks.
  • The description suggests volume and other filters, but the displayed logic does not implement them.
  • Separate confirmation variables are calculated, while trade orders use the unconfirmed signal variables.
  • The published backtest settings identify a short BTC/USDT futures sample, but no results are reported.

Tags

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