Moving Average Crossover Trend-Following System
Summary
This strategy uses moving average crossovers to generate long and short signals. Its overview describes a 20-period and 30-period simple moving average: crossing above signals a long entry, while crossing below signals a short entry. The supplied script also allows simple or exponential averages and configurable signal pairs, including price crossing either average. It presents the method as a straightforward way to follow trends and filter some price noise.
The document identifies key limitations: crossovers can whipsaw in sideways markets, and moving averages lag during strong trends. It suggests smoothing or changing periods, adding other indicators, and using stop-loss or take-profit rules. No performance results are provided. The published backtest settings specify BTC/USDT futures over a short date range, but the source code sets its time filter to always true, so the stated start and end parameters do not restrict trading as described. The claimed 20/30 crossover is also only one of several configurable signal conditions.
Key ideas
- A long signal can occur when the faster average crosses above the slower average, with the reverse crossing signaling short.
- The example describes 20-period and 30-period simple averages, while the script also permits exponential averages.
- Crossovers can produce repeated losing signals in sideways markets and lag during strong moves.
- The source exposes alternative crossover conditions and does not apply its configured date window.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.