Sub topic 14
Why timing the market is hard
This chapter assumes you know the earlier material: drawdown and recovery math, the 10% and 20% rules of thumb, and the behavioral pitfalls of downturns. The Python examples use only basic functions and loops.
Market timing means moving money out of stocks before a decline and back in before a recovery. It is attractive because the earlier chapters showed how deep and long declines can be. If you could skip a 30% fall, the gain would be large. This chapter explains why that is much harder than it looks, and what it means for the strategies from the previous chapter.
What timing actually requires
A timer has to make two correct decisions, in the right order:
- Sell before the decline gets deep.
- Buy back before enough of the recovery has already happened.
Getting only the first one right is not enough. Money that sits in cash while prices recover loses the gain. The second call is usually harder than the first, because it comes when headlines and sentiment are at their worst.
Two decisions compound the odds
Suppose you are right on each call 60% of the time, and the calls are independent. The chance of being right on both is 0.6 × 0.6 = 0.36. That is worse than a coin flip. Repeat the cycle several times and the chance of a streak of successes shrinks quickly.
| Accuracy on each call | Right on both calls in one cycle | Right on both calls in three cycles |
|---|---|---|
| 50% | 25% | about 1.6% |
| 60% | 36% | about 4.7% |
| 70% | 49% | about 11.8% |
| 80% | 64% | about 26.2% |
Real calls are not fully independent, and the payoffs are not all-or-nothing. The table is a simplification, not a model of real markets. It shows why a timer needs a high hit rate on each call, not a merely better-than-average one.
Two worked cases
The next program compares buy-and-hold with two timers on the same price path. The market starts at 1.00, falls 30% to 0.70, then rises to 1.05. The first timer sells early (at 0.90) and buys back after a 20% rebound off the bottom (at 0.84). The second timer sells after the damage is done (at 0.70) and buys back only when the recovery feels safe (at 0.90).
def timed_value(sell_price, buy_price, end_price, start_price=1.0):
"""Value of 1.0 invested at start_price, sold at sell_price, rebought at buy_price."""
cash = sell_price / start_price
units = cash / buy_price
return units * end_price
end = 1.05
hold = end / 1.0
early_exit = timed_value(0.90, 0.84, end)
late_exit = timed_value(0.70, 0.90, end)
print(f"buy and hold: {hold:.3f}")
print(f"good timing: {early_exit:.3f}")
print(f"panic sell, late buy:{late_exit:.3f}")Running it prints 1.050, 1.125, and 0.817. The good timer beats holding by about 7 percentage points. The late timer ends about 23 points below the starting value, even though the market finished above where it began.
The second case is not an exotic mistake. It is the behavior described in the previous chapters on loss aversion and panic selling. Selling after prices have already fallen, and buying after they have already risen, turns a temporary decline into a permanent loss.
Why the signals are unreliable
The phase is clear only in hindsight
A bear market is conventionally a decline of 20% from a peak. You cannot know a peak was a peak until prices have fallen from it. The same is true of a trough. A 10% fall can end as an ordinary pullback or continue into a bear market, and nothing in the price series at that moment tells you which. Chapter after chapter in this tutorial has labeled phases using completed price histories. A real investor never has one.
Good and bad days cluster
Large daily gains tend to occur close in time to large daily losses, often within the same volatile period. Bear markets contain sharp rallies, sometimes called bear-market rallies, and recoveries often begin while the news is still bad. A timer who exits during a panic therefore tends to be out of the market on some of the strongest days. Studies of "missing the best days" illustrate this: removing a small number of the best days from a long history reduces the total return a great deal. Treat the exact figures with care, since they depend on the index, the period, and the start and end dates chosen. The lesson that holds across them is that returns are concentrated in a few days that are hard to predict.
def total_return(daily_returns):
value = 1.0
for r in daily_returns:
value *= 1 + r
return value - 1
# Ten illustrative daily returns (not real data).
days = [0.01, -0.02, 0.005, 0.08, -0.03, 0.01, 0.07, -0.01, 0.002, 0.004]
best_two = sorted(days, reverse=True)[:2]
without_best = list(days)
for r in best_two:
without_best.remove(r)
print(f"all days: {total_return(days):.1%}")
print(f"missing best two: {total_return(without_best):.1%}")The data here are made up to show the arithmetic. They are not evidence about any real market. In the sample, removing the two best days turns a gain into a loss.
Markets price in expectations
Stock prices reflect what investors expect, not just what is currently happening. Prices often fall before a recession is officially declared and often rise while economic data are still weak. Official recession dates are announced well after a recession begins. Economic news that looks alarming may already be in the price. A timer reacting to news is reacting to information that many other participants have already acted on.
Indicators carry noise
Tools such as moving averages, the VIX, yield-curve signals, and valuation ratios have all been associated with market conditions. None of them is a reliable switch. The VIX, for example, tends to be high when markets are stressed, but it is high at lows and at the middle of declines, so it does not say when the stress will end. Valuation ratios can stay elevated for years. A signal that worked in a past period may reflect luck, and a rule fitted to history often performs worse afterward. This is the same warning as in the historical-record chapter: past patterns are not forecasts.
Costs and taxes
Switching in and out can add trading costs, bid-ask spreads, and in taxable accounts a tax bill from realized gains. These costs are small per trade but come out of the return whether or not the timing call was right. The rules differ by country and account type, so check yours.
What this does and does not imply
It does not mean prices never fall or that no one has ever timed a decline. Some investors will sell near a peak by luck or skill. The practical point is that you cannot tell in advance which, and the cost of being wrong on one call is large relative to the gain from being right.
It also does not mean you must ignore risk. The earlier chapters on strategy describe ways to manage it without predicting anything:
- Choose a stock and bond allocation that matches how much decline you can tolerate, in money and in nerves.
- Diversify so that no single holding or sector decides the outcome.
- Rebalance on a schedule or when allocations drift beyond a band. This sells some of what has risen and buys some of what has fallen, using rules instead of forecasts.
- Invest regularly. As the dollar-cost averaging example showed, a fixed amount buys more shares when prices are low, so average cost per share comes out below the average price.
Decision criteria
Before acting on a view about the market's direction, ask:
- Is this a change in my goals or time horizon, or a reaction to a price move?
- What is my rule for buying back, and could I follow it when the news is at its worst?
- What do I lose if I am wrong about the sell? About the buy?
- Have I counted taxes and trading costs?
- Would a pre-set rule, such as rebalancing bands, achieve my goal of limiting risk without a forecast?
If the answers show that the plan depends on correct forecasts, the plan is fragile. If the plan works for a range of outcomes, you do not need to know which one will occur.
Summary
Timing needs two correct decisions, and the second, buying back, is usually harder. Market phases are labeled with hindsight, the best and worst days cluster, prices move on expectations before news arrives, and indicators are noisy. Costs apply to every switch. A plan built on allocation, diversification, rebalancing, and regular investing needs no forecast.
Exercise
A timer is right on each of two independent calls (sell, then buy back) with probability 0.7. What is the chance of being right on both in one cycle, and why does being right on the sell alone not guarantee a better result than holding?
Show answer
The chance is 0.7 × 0.7 = 0.49, or 49%. Being right on the sell alone does not guarantee a better result because the money must come back into the market. If the buy-back happens at a price above the sell price, the timer ends up with fewer shares than before. In the worked example, a timer who sold at 0.70 and bought at 0.90 ended at 0.817, below both the starting value and buy-and-hold.
Exercise
Using timed_value from this chapter, a timer sells at 0.80 and buys back at 0.75. The market ends at 1.05. What is the final value, and how does it compare with buy-and-hold?
Show answer
timed_value(0.80, 0.75, 1.05) = (0.80 / 0.75) × 1.05 = 1.12. Buy-and-hold ends at 1.05, so the timer is ahead by 0.07. This is the good case: a sale followed by a buy-back at a lower price.