Time invested
The share of days with money in the market rather than all in cash.
3 min readLesson 15 of 57Interactive
In short
A strategy that's out of the market half the time can't earn the market's return on those days, but it also avoids its falls.
Why it matters
Some strategies are always invested. Others step in and out of the market, holding cash while they wait for a signal. Time invested shows how much of the period a strategy actually had money in the market, and that helps explain its results.
A strategy that's in the market only half the time can only earn the market's gains on those days. If it trails buying and holding, low time invested is often why. On the other hand, it may have dodged some of the worst falls, which shows up as a smaller max drawdown. Time invested is the key to reading that trade-off.
How it works
MarketLab counts the trading days in a backtest on which the strategy held any stock at all, and divides by the total number of trading days. A day with even a small holding counts as invested, so time invested says how often the strategy was in the market, not how much of its money was.
Buy and hold is invested from the first day, so it shows 100% (or very close). A moving-average crossover sells everything when the fast average drops below the slow one and waits in cash, so it often lands well below 100%. In MarketLab's backtester, cash earns no interest, so days out of the market earn exactly 0%.
The stock market's long-run gains have come unevenly, with a lot of the total made on a small number of strong days. Many of the strongest days have come close to the weakest ones, in the middle of a sell-off, exactly when an in-and-out strategy is most likely to be in cash.
Time invested = days holding any stock ÷ total trading days
The share of the period with money in the market rather than all in cash.
A worked example
A five-year backtest covers 1,260 trading days. A moving-average strategy holds stocks on 819 of them and returns +30%. Buying and holding the same stocks returns +50%.
- Time invested: 819 ÷ 1,260 = 0.65, or 65%.
- Days in cash: 1,260 − 819 = 441, about 35% of the period, earning nothing.
- Buy and hold: invested on all 1,260 days, so 100%.
- Much of the 20-point shortfall is likely to come from the 441 days it sat out: if the stocks rose on balance during those days, the strategy missed those gains.
Result: The strategy was invested 65% of the time and gave up some return. Whether it was worth it depends on whether its max drawdown was much smaller than buying and holding.
Try it
Strategy against its benchmark
Over two years the strategy returned −22.9% and simply holding returned +11.7%; the strategy was invested 34% of the time.
Strategy
−22.9%
Buy and hold
+11.7%
Beat the benchmark by
−34.6%
Time invested
34%
9 trades
The price started at $100.
Generated prices for illustration, not market data.
How to read it
- 100%
- Always in the market, like buy and hold. It gets all the gains and all the falls.
- About 50% to 90%
- Typical of trend-following strategies. Expect a smaller drawdown, and often a lower return.
- Below 30%
- Mostly in cash. Its results rest on a few trades, so a single good or bad call can dominate, and luck plays a big part.
In the real world
- Fund managers talk about being "fully invested" or "holding cash". Many stock funds keep only a few percent in cash, because cash has tended to drag on returns over long periods.
- Studies by fund companies have found that missing just a handful of the market's best days over a couple of decades could cut the final result dramatically. This is a common argument against trying to time the market.
- Real investors' cash usually earns some interest in a savings account or money market fund. When rates are high, that makes sitting out less costly than it is in MarketLab's backtester.
Common mistakes
- Reading 80% time invested as 80% of the money invested. One small holding makes a day count as invested.
- Comparing returns without noticing time invested. A strategy that was in cash during a crash looks clever in that period and can lag for years after.
- Assuming lower time invested always means lower risk. Being out of the market protects you from falls only if you're out at the right times.
See it in MarketLab
Test yourself
Optional: 4 quick questions on the words, using the idea, and how it plays out in real markets.
Loading your answers…