UTC

Sign up free

Moving Average Crossover Strategy: How It Works, Choosing Parameters, and a One-Sentence AI Backtest Prompt

The moving average crossover, the classic trend strategy: long on a golden cross, exit on a death cross. Parameters, best markets, tweaks and MetisAI prompts.

How it works

Use one short-period moving average and one long-period moving average. When the short average crosses above the long one (a golden cross), recent prices are stronger than the long-term average, which is taken as an uptrend, so you go long. When it crosses below (a death cross), you close the position or flip to a short.

Common parameters

  • Classic pairs: 20/60 and 50/200 (on the daily chart, the 50/200 crossover is the famous “golden cross”).
  • Shorter periods give more signals, and more false signals; longer periods are steadier but enter later.
  • Crypto trades 24/7, and 4-hour and daily candles are the usual timeframes for low- to medium-frequency trading.

One-sentence prompts

Basic version

On BTC/USDT 4-hour candles, go long when the 20-period EMA crosses above the 60-period EMA and close the position when it crosses below; no shorting. Stop loss of 5% per trade, use 30% of capital per trade, and backtest the last 3 years.

With a trend filter

Add a filter to the moving average crossover strategy above: only allow long entries when the price is above the 200-period moving average. Compare the max drawdown and number of trades with and without the filter.

Pros, cons and improvements

The pros: simple rules, hard to overfit, and it catches big trends. The con: in sideways markets it crosses back and forth repeatedly and racks up a string of small losses. Common improvements: add a long-term moving average filter, add a trend-strength filter such as ADX, and use ATR to set a dynamic stop loss.

Note

This article only explains how tools are used and how strategies work. It is not investment advice. Backtest and paper trading performance does not represent future returns. Digital assets and leveraged trading carry extremely high risk; only use money you can afford to lose.

+

Related reading

  1. 01RSI Overbought/Oversold Strategy: The Go-To Starting Point for Mean ReversionBuy when oversold, sell when it returns to the middle. High win rate, but it must have a stop loss.
  2. 02Bollinger Bands Strategy: Two Ways to Trade It — Reversion and BreakoutOne indicator, two opposite uses. What matters is whether the market is ranging or building up to a breakout.
  3. 03Grid Trading Strategy: Automatic “Buy Low, Sell High” for Range-Bound MarketsBuys low and sells high automatically inside a range. It does its best work in sideways markets; a breakout from the range is its fatal weakness.