Moving average crossover
Last updated
A moving average crossover is a rule that acts when a faster moving average crosses a slower one, treating the cross as a change in trend.
How a moving average crossover is calculated
Compute two averages of the same price, for example a 50-bar and a 200-bar. A bullish cross is the bar where the fast line moves from below the slow line to above it. A bearish cross is the reverse. The rule needs three choices: which average type, which two lengths, and what to do on each cross.
How it is read
Some traders hold only while the fast line is above the slow one. Others use the cross as a filter for other signals. Longer pairs cross less often.
Common mistakes
- Counting only the crosses that led to a big move. Most crosses in a sideways market reverse within days.
- Optimising the two lengths on the same history used to judge the rule.
- Ignoring costs. A rule that crosses often pays the spread and fees every time.
Worked example
Take a 50-day and a 200-day average. Yesterday the 50-day was 99.80 and the 200-day was 100.00, so the fast line was under. Today the 50-day is 100.10 and the 200-day is 100.02, so the fast line is over: a bullish cross. Now count the cost. In a sideways year the lines might cross 12 times, and each cross is a trade. At 0.10 percent a side that is 1.2 percent in fees before a single losing trade. A shorter pair such as 20 and 50 crosses more often, so it pays more.
Why the signal is late
Both averages lag price. A 200-bar simple average sits about 100 bars behind on average, so by the time the faster line crosses it, much of the move has already happened. A crossover describes a trend that has started. It does not forecast one.
What Tickfloor's tests found
On daily crypto bars the tested crossover returned 86.0 percent a year after costs against 62.8 percent for an equal-weight basket, and was still marked Did not pass (corrected q 1.00, the p-value after correcting for the many tests run). The golden cross on ETFs returned 11.8 percent a year against 13.2 percent for the basket. The hourly 9/21 EMA cross lost 51.3 percent over a year after costs while the same assets gained 84.7 percent, and did better than 39 of 200 random-entry copies. In a sweep of 6,428 indicator rules, none passed the full gate.
Test it yourself
Add an entry rule where one moving average crosses above another, then set an exit by a number of bars, a stop, or the reverse cross. The Lab charges trading costs on every trade, fills on the next day's open, and shows how many attempts you have made.
Common questions
What is a moving average cross?
It is the bar where a faster moving average moves from below a slower one to above it (bullish), or from above to below (bearish). Traders read the cross as a change in trend.
What is the best moving average crossover?
None of the crossover rules on Tickfloor's claim pages passed our gate, including 9/21 on hourly crypto and 50/200 on ETFs. Picking the best pair on past data is the overfitting trap, because every pair fits some stretch of history.
What Tickfloor tested
How we counted
Tickfloor's research desk has backtested 1,346 strategies, net of modelled trading costs. After correcting for the 1,778 tests run, 0 passed. That does not prove no strategy works. These are results from our older test setup, which was built before our current testing rules. They have not been redone under those rules.
Claim tests on Moving average crossover
- Moving Average Crossover (claim test)
- Golden Cross / Death Cross (claim test)
- 9/21 EMA Crossover (claim test)
- 9/21 EMA crossover (claim test)
Lessons that cover it
Related concepts
General information only. It doesn't consider your objectives, finances or needs. Tickfloor holds no financial services licence and never places trades.