Skip to content
All library documents

Dual SMA Trend Signals with Periodic Dollar-Cost Averaging

Article Strategy library · Author: ChaoZhang

Summary

This strategy combines a fast and slow simple moving average crossover with fixed-amount purchases. A cross above the slower average triggers a long entry, while a cross below triggers a short entry in the supplied script. The description also proposes adding purchases at regular DCA intervals to reduce average entry cost and capture medium to long-term trends. It lists possible adjustments such as changing average periods, adding indicators, and using stop-loss or take-profit rules.

The document gives default averages of 14 and 28 periods, a DCA amount of 100, and an interval of 14, alongside a one-week Bitcoin futures backtest configuration. It does not report performance results. There is a material gap between the description and implementation: the calculated DCA average price is not used to place periodic orders, and the crossover exit description does not match the script’s short-entry order. The interval is based on bar count, despite being labeled in days, so the strategy would need careful review and testing before use.

Key ideas

  • A fast SMA crossing above a slow SMA is used as a long-entry signal.
  • The description proposes additional fixed-amount purchases at regular intervals.
  • The stated exit is a full sale on a bearish crossover, but the code instead submits a short entry.
  • The DCA calculation in the code does not control periodic purchases.
  • Choppy markets and sustained declines can lead to costs or losses.

Tags

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