Ready to go further
Next: read the other side of the cross
The golden cross is the same rule in reverse: the fast average rises above the slow one. The same lag applies.
What is included
- What it is, in plain words
- The formula or mechanism, with exact arithmetic
- How it hits grid, martingale and DCA bots
- A check you can run before you switch a bot on
Who it is for
- People who run or plan to run a trading bot
- Anyone reading a backtest or a bot sales page
- Readers who want the numbers, not the pitch
- Not advice, and not a signal service
Key facts
- A death cross is when a shorter moving average of price, most often the 50-day, falls below a longer one, most often the 200-day. It is the mirror image of the golden cross.
- Both averages are built from past closes, so the cross can only appear after price has already moved. It confirms a fall; it does not predict one.
- In the made-up example below, the highest close was 162.42 on day 219. The death cross came on day 277, with the close at 125.34: already 22.8 percent below the high (calculated by us on 31 Oct 2026, exact).
- Nobody can say from this page how often a death cross is followed by further falls or by a recovery. That has to be counted on real data with costs.
- The numbers on this page are made up. They show how to count, not how any market behaves.
What a death cross is
A moving average is the average of the last N closing prices, recalculated every bar. A simple moving average (SMA) weights every bar in the window equally. Because it drops the oldest price and adds the newest each bar, it moves slowly and smooths out the noise.
A short average reacts faster than a long one. In a steady rise the short average sits above the long one, because recent prices are higher than older ones. When price turns down for long enough, the short average falls through the long one. That moment is the death cross. The common pair is the 50-day and 200-day SMA on a daily chart, but the same idea is used with other lengths, with exponential averages, and on other timeframes. See EMA crossover for the version that weights recent bars more.
The name is a label, nothing more. It has no special force. The rule is simply: the fast average was at or above the slow average on the previous bar, and it is below on this bar. The opposite event, the fast average rising above the slow one, is the golden cross. Read that page too, because every limit described here applies to it in reverse.
Why it is late by design
An average of the last 50 closes includes prices from nearly ten weeks ago on a daily chart. The 200-day average reaches back about 40 weeks. For the 50 to fall below the 200, the recent prices must be low enough for long enough to drag the short average under a long one that is itself sitting at higher, older levels. That takes time.
This delay is called lag. A longer window means smoother lines and fewer false alarms, but more lag. A shorter window means less lag but more crosses that reverse within days. There is no setting that removes both problems; each choice moves the cost somewhere else.
So a death cross usually shows up after a fall has already happened. Sometimes the fall is over by the time the lines cross, and the price has started to recover. The cross is then reporting the past. This is the same trade-off every trend-following rule has, and it is why the signal is better thought of as a description of what has happened than a forecast.
A worked example with made-up numbers
Take 300 made-up daily closes. They rise from 100 to a high, then slide lower, with a small wobble on top. We calculate a 50-day SMA and a 200-day SMA of the closes. The 200-day average needs 200 closes, so the first value is on day 200. The table shows four days picked from that run.
| Day | Close | 50-day SMA | 200-day SMA | State |
|---|---|---|---|---|
| 219 | 162.42 | 152.84 | 132.31 | 50 above 200 |
| 276 | 128.48 | 141.51 | 141.11 | 50 still above 200 |
| 277 | 125.34 | 140.85 | 141.14 | 50 below 200: the cross |
| 300 | 109.36 | 126.82 | 140.49 | 50 below 200 |
The highest close is 162.42 on day 219. The 50-day SMA first falls below the 200-day SMA on day 277, 58 days later. On the day before, the 50 was 141.51 and the 200 was 141.11, so the 50 was still above. On day 277 the 50 is 140.85 and the 200 is 141.14, so it has crossed.
The close on the cross day is 125.34. That is 37.08 points, or 22.8 percent, below the high. So the cross did not mark the top. It arrived after more than a fifth of the price had already gone. After the cross the close drifted down further to 109.36 on day 300, a further 15.98 points (12.7 percent of the close at the cross). From the high, the total fall by day 300 is 32.7 percent. All of these figures are made up and were calculated by us on 31 Oct 2026, exact. One made-up path proves nothing about real markets; it shows what lag looks like in numbers.
How a bot uses a death cross
A bot needs a rule written without any room for judgment. A simple one looks like this, and it is an example of a rule, not a recommendation:
- Condition. On the close of each daily bar, compute the 50-day and 200-day SMA. If the 50 was at or above the 200 on the previous bar and is below it now, the event has happened.
- Action. The bot does one fixed thing on the event: for example it closes any long position, or it opens a short one. Which action, and whether it acts on the same bar or the next, is a setting you must define.
- Re-arm. The bot waits for the opposite event, a golden cross, or for a fixed exit rule, before acting again.
A rule that acts at the close of the bar that made the cross trades at a price it only knew at the end of that bar. A test that uses the cross to trade at that bar's open or at an earlier price is using information from the future. See look-ahead bias.
How it breaks a bot
- Whipsaws. When the two averages run close together, small moves in price can push the fast line across the slow one and back. In a sideways market that gives a string of crosses, each followed by a reversal. In the made-up path above there is 1 cross after day 200, because the move is steady. A real choppy period can produce many more, and each one costs a spread and possibly slippage. A close-based filter such as the one in false breakout is one way people test fewer, later signals, at the price of a later entry.
- Late exits. If the bot only reacts at the cross, it gives up the early part of any fall, as in the example where 22.8 percent was already gone.
- Fees on rare trades. A daily 50/200 rule trades seldom. A few trades a year means a very small sample, and a small sample makes any average result unreliable.
- Settings picked from the past. Trying 20/100, 30/150, 50/200 and keeping the best on old data is overfitting. The chosen pair may only describe the history it was fitted to.
How to check it properly
Write the rule in full, including the action and the bar on which it acts. Run it on years of real data across rising, falling and flat periods, with spread, fees and slippage included. Record how many crosses happened, how the position performed after each, and the worst stretch from peak to trough. Compare the result with simply holding, and with the same rule using another pair of lengths, using expectancy rather than a single total. Then test on a stretch the rule has never seen, as in forward testing. The full method is in how to backtest.
Because a death cross is slow, a bot using it usually sits beside rules that act faster, such as a trailing stop, and beside sizing rules from the position size calculator. Other tools describe different things: RSI measures the pace of recent moves, Bollinger Bands measure spread around an average, and VWAP is an average weighted by volume over a session. None of them is a better version of a moving average cross; they answer different questions.
What a death cross does not tell you
It does not say that price will keep falling, that it will recover, or how far either will go. It does not say how often it has been followed by more losses, because that varies with the market, the period and the lengths chosen. It describes the relationship between two averages of old prices, nothing else. This page is education only.
Keep Going
Related Tools and Guides
Keep exploring
FAQ
Frequently Asked Questions
What is a death cross?
It is when a short moving average, usually the 50-day, falls below a long one, usually the 200-day. It is the opposite of a golden cross, and it is built from past closes.
Does a death cross predict a fall?
No. It reports that recent prices have been lower than older ones for long enough to pull the averages across. Often a good part of the fall has already happened.
Why is a death cross late?
Both averages include many old prices, so they move slowly. A longer window gives smoother lines but more lag, and a shorter one gives less lag but more false crosses.
How would a bot trade a death cross?
It would check the two averages at the close of each bar and take one fixed action when the fast one drops below the slow one, such as closing a long position. The action and the bar it acts on must be set in writing and tested with costs.
How do you test a death cross rule?
Run it on years of real data with spread, fees and slippage, count the crosses and the results after each, compare other lengths, and check on data the rule has not seen. Beware of using prices the bot could not have known.
Are the numbers on this page real?
Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.
Can I use this to decide whether to run a bot?
It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.
Is this financial advice?
No. It is general education. The prices are made up and it does not consider your situation or give any signal.
Know the Risk Before You Run It
Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.
Trading carries a risk of loss