Moving Average Crossover Strategy
A moving average crossover is one of the oldest trend-following rules. When a fast average (for example 50 days) crosses above a slow one (200 days, the golden cross), the trend is considered up; when it crosses back below (the death cross), you exit. The goal is not to catch tops and bottoms but to stay in the big moves and step aside in long declines.
Test this strategy in Radiant AIRules
- Calculate a fast and a slow moving average of daily closes (simple SMA or exponential EMA).
- Buy at the next open after the fast average closes above the slow one.
- Sell at the next open after the fast average closes back below the slow one.
- EMA reacts faster than SMA: earlier signals, but also more false ones.
Parameters
| Parameter | Default | Range |
|---|---|---|
| Fast average | 50 days | 2-200 |
| Slow average | 200 days | 5-300 |
| Type | SMA or EMA | - |
| Max positions | 5 | 1-20 |
Risks
- In sideways markets the averages cross back and forth and every crossing is a small loss (whipsaw).
- Signals come late by design: you give up the first part of every move and give back part of the profit at the end.
- Past results do not guarantee future results. A backtest is a simulation on historical prices, not a forecast.
- Costs matter: every trade pays commission and spread. Strategies with many short trades are hit hardest.
- Overfitting: if you keep tweaking the numbers until the curve looks great, you are fitting the past. Test the idea on other symbols and other years before trusting it.
Questions
- What is a golden cross?
- The 50-day average crossing above the 200-day average. It is a slow trend signal, not a prediction.
- SMA or EMA?
- EMA weights recent prices more, so it turns earlier. Whether that helps depends on the market; test both on the same data.
- Is this financial advice?
- No. Radiant AI is an educational tool that tests rules on historical data. It does not tell you what to buy and does not trade for you.