Skip to content
All library documents

Moving Average Crossover Signals with MACD Context

Article Strategy library · Author: ChaoZhang

Summary

The Starlight strategy uses a short simple moving average crossing a longer one to signal direction: an upward cross opens a long position, while a downward cross closes it. The document also explains MACD line and signal-line crosses as a way to interpret momentum and potentially confirm the moving-average signal. However, the supplied implementation calculates and plots MACD without using it to filter or confirm entries, so the described confirmation is not part of the actual trading rules shown.

The source sets the moving-average lengths to 20 and 50, with standard MACD settings, and specifies a daily BTC/USDT futures backtest over roughly a year. No performance statistics or comparative evidence are included. The approach is simple and may capture sustained trends, but moving averages lag and can repeatedly cross in range-bound markets, increasing turnover and costs. Results are sensitive to parameter choices; broader market testing, risk controls, and out-of-sample evaluation are suggested rather than demonstrated.

Key ideas

  • An upward cross of the short average above the long average opens a long trade.
  • A downward cross closes the long position; the shown code does not open a short.
  • MACD is calculated and plotted, but it does not affect the displayed entry rules.
  • The stated BTC/USDT futures backtest settings include no performance results.
  • Lag, choppy-market signals, and parameter sensitivity are key limitations.

Tags

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