Moving Average Crossover Signals and Their Limitations
Summary
This document describes a trend-following strategy that compares a simple moving average with the closing price. A cross of price above the average opens a long position, while a cross below opens a short position; the reverse signal exits the opposing position. The example exposes the price source and average period as parameters and includes an optional stop loss. Its backtest settings specify BTC/USDT futures and a short 30-minute chart interval, but no performance results are reported.
The note identifies whipsaws in sideways markets, sensitivity to parameter choices, and missed signals as key limitations. It suggests adding filters such as volume or Bollinger Bands, using adaptive averages, and applying stop losses. The included code and prose do not fully agree: the explanation describes a fast and slow average crossing each other, but the code compares one average with price. Signal function names in the prose also appear reversed relative to the described cross directions. These inconsistencies make implementation details worth checking before reuse.
Key ideas
- A simple moving average is compared with price to generate long and short entries on opposite-direction crosses.
- Reverse crosses close positions, and an optional stop loss is available.
- Sideways markets can produce repeated false signals and excess trading.
- Parameter sensitivity and missed moves are cited as limitations, with filters and adaptive averages suggested as remedies.
- The prose describes two moving averages, while the code implements a moving average against price.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.