Support Β· 9 AM – 6 PM
All research β†’

A stock is sold between rebalances: buy a new one at once or wait?

1,660backtests
830stock strategies
4NSE stock groups
5 yrsof daily prices
What we tested
  • 1,660 backtests: 830 stock strategies, each run twice (wait for the next rebalance, or refill the next morning)
  • NSE stocks: Nifty 500, Nifty 200, Midcap 150 and Smallcap 250
  • Up to 10 stocks per strategy, β‚Ή10 lakh capital, daily prices
  • 5 years (Nov 2021 – Nov 2026), plus the last 3 years on their own
  • Results before costs
  • Tool used: AI Strategy Finder

You hold 10 stocks and you rebalance once a month. In the middle of the month one stock hits its stop-loss and is sold. Now one place in your portfolio is empty. It holds cash until the next rebalance.

Every investor asks the same thing at that moment: should I buy a new stock tomorrow, or wait? Cash earns nothing, so buying at once feels right. We wanted numbers.

So we ran 830 stock strategies twice. Once with the empty place left in cash until the next rebalance. Once with it filled the next morning. Nothing else changed.

Objective

For stock strategies that buy and sell on a fixed rebalance date, find out what happens when an empty place is refilled at once:

  • Does the return go up?
  • Does the worst fall get deeper?
  • Does the answer change for strategies that hold a lot of cash, and for small or large companies?

How we tested it

We used the engine and market data of the AI Strategy Finder.

  1. 20 strategy searches on four groups of NSE stocks: Nifty 500, Nifty 200, Midcap 150 and Smallcap 250. Five searches on each group.
  2. From each search we kept the best-ranked strategies, plus every strategy that passed all of our robustness tests. That gave 830 strategies. 37 of them passed all the tests.
  3. Every strategy holds up to 10 stocks and buys and sells on its rebalance date. Between two rebalances a stock can still be sold by its stop-loss or its exit rule.
  4. Each strategy was run twice:
    • Wait: an empty place stays in cash until the next rebalance.
    • Refill: the next morning, the empty place is filled with the best-ranked stock that passes the strategy's own filters. Same ranking, same exits, same rebalance.
  5. That gives 830 Γ— 2 = 1,660 backtests.

Other details:

  • Period: 23 November 2021 to 23 November 2026 (5 years). We also report the last 3 years on their own, from November 2023. The searches did not choose strategies on those 3 years.
  • Prices: daily NSE prices. Capital: β‚Ή10 lakh.
  • Stocks only, so lot size does not apply.
  • Results are before costs. Refill trades much more, so costs would hurt it more (see Limitations).

How to read the tables. "Return" is the yearly return (CAGR). "Worst fall" is the largest drop from a peak. For each strategy we took the refill result minus the wait result. "Typical change" is the middle value of those changes. "Refill higher" is how often refill made more money than waiting on the same strategy. 50% means no difference.

Result 1Over 5 years, refill lost more often than it won

All 830 strategiesWaitRefill
Typical share of money invested67.4%97.7%
Typical trades in 5 years196495
Typical worst fall24.7%34.4%
Typical change in return per yearβˆ’1.1 points
Refill made more money38% of strategies
Refill made the worst fall deeper79% of strategies
Refill gave more return and no deeper fall12% of strategies
Wait or refill: money invested and worst fall (all 830 strategies, 5 years)
WaitRefill
67.4% 97.7% Money invested 24.7% 34.4% Worst fall

Typical values. Refill kept the money invested, and the fall got deeper.

Typical trades in 5 years
196 Wait 495 Refill
Did refill make the worst fall deeper?
79% Deeper 79% Not deeper 21%

Refill kept the money almost fully invested. It more than doubled the number of trades. But on the same strategy it lowered the 5-year return about 6 times in 10, and it made the worst fall deeper about 8 times in 10. The typical worst fall went from about a quarter of the capital to about a third.

Result 2In the last 3 years, refill earned a little more, with the same deeper falls

All 830 strategies, last 3 years onlyResult
Typical change in return per year+1.2 points
Refill made more money66% of strategies
Typical worst fall (wait β†’ refill)24.5% β†’ 34.2%
Refill made the worst fall deeper80% of strategies
Refill gave more return and no deeper fall19% of strategies
How often refill made more money than waiting
38% Full 5 years 66% Last 3 years

┆ 50% = no differenceThe return result changed with the period. The deeper fall did not.

This is the part we are least sure of. In the last 3 years, refill made more money in 2 of 3 strategies. Over the full 5 years it made less in about 6 of 10. So the return result changed with the period. The fall did not: in both periods refill made the fall deeper in 8 of 10 strategies.

Result 3Strategies that sit in cash got much worse

GroupStrategiesTypical change in return (5 years)Refill higherTypical worst fall (wait β†’ refill)More return and no deeper fall
Invested less than 70% of the time419βˆ’3.8 points32%20.6% β†’ 40.8%2%
Invested 70% of the time or more411βˆ’0.4 points43%30.1% β†’ 30.6%21%
Typical worst fall, by how much a strategy was invested
WaitRefill
20.6% 40.8% Invested < 70% 30.1% 30.6% Invested β‰₯ 70%

Strategies that sat in cash: the worst fall almost doubled.

Half the strategies were in cash most of the time. Their typical strategy was invested only 24.2% of the time. For them, refill was clearly bad. The worst fall almost doubled, it got deeper in 98% of them, and trades went from 191 to 1,327. Their cash was not a waste. Their filters kept them out of the market when few stocks looked good. Refill bought the next stock anyway, even when it was weak.

In the last 3 years the picture was the same for this group: βˆ’1.8 points, and the worst fall went from 20.4% to 39.6%.

For strategies that were already almost fully invested, refill changed little over 5 years (βˆ’0.4 points). In the last 3 years it helped them: +1.9 points, more money in 86% of them, and the worst fall moved only from 29.9% to 30.3%. This was the one group where refill looked useful.

Result 4Strategies that passed all our tests: a small change

37 strategies that passed all testsFull 5 yearsLast 3 years
Typical return per year (wait β†’ refill)25.5% β†’ 24.6%18.6% β†’ 19.8%
Typical change in return per yearβˆ’1.2 points+0.5 points
Refill made more money24%68%
Typical worst fall (wait β†’ refill)25.6% β†’ 27.3%25.1% β†’ 26.7%
Refill made the worst fall deeper65%65%
37 strategies that passed all tests: typical return per year
Full 5 yearsLast 3 years
25.5% 24.6% 18.6% 19.8% WaitRefill

A small change either way.

The strong strategies were already 95.1% invested, so refill had little to fill. It made the fall a little deeper in 2 of 3 of them. On return it was a coin toss that depended on the period.

Result 5By group of stocks

StocksStrategiesChange in return, 5 yearsRefill higher, 5 yearsChange in return, last 3 yearsTypical worst fall, 5 years (wait β†’ refill)
Nifty 500202βˆ’2.1 points7%+0.1 points24.7% β†’ 39.5%
Nifty 200209βˆ’0.3 points47%+4.7 points24.6% β†’ 32.7%
Midcap 150209+1.1 points64%+4.0 points22.6% β†’ 28.8%
Smallcap 250210βˆ’1.3 points31%+0.1 points29.1% β†’ 43.0%
Change in yearly return from refilling, by group of stocks
5 yearsLast 3 years
Nifty 500 βˆ’2.1 pts +0.1 pts Nifty 200 βˆ’0.3 pts +4.7 pts Midcap 150 +1.1 pts +4 pts Smallcap 250 βˆ’1.3 pts +0.1 pts

Points per year, refill minus wait. Left of the line = refill earned less.

Typical worst fall, wait β†’ refill, by group of stocks (5 years)
Nifty 500Nifty 200Midcap 150Smallcap 250
39.5% 32.7% 28.8% 43% WaitRefill

Wait: Nifty 500 24.7%, Nifty 200 24.6%, Midcap 150 22.6%, Smallcap 250 29.1%. Every group fell deeper with refill.

Midcap 150 was the only group where refill earned more over 5 years. Even there the worst fall got deeper. On Smallcap 250 refill pushed the typical worst fall to 43%. On Nifty 500 refill made more money in only 7% of strategies over 5 years. In every group, refill made the worst fall deeper in 75% to 86% of strategies.

What an algo trader can take from this

  1. Cash in a rebalance strategy is often part of the strategy. If your filters leave places empty, they are telling you that few stocks look good. Filling those places anyway made the worst fall almost double.
  2. "Always fully invested" is not free. Refill raised the share invested from 67% to 98% but made the fall deeper in 8 of 10 strategies. Ask whether the extra return is worth the extra fall.
  3. If your strategy is already almost fully invested, refill matters little. Over 5 years the change was small (βˆ’0.4 points). It helped in the last 3 years, but that did not hold over the full period.
  4. Check both the return and the fall. Refill gave more return with no deeper fall in only 12% of strategies over 5 years.
  5. Count your costs. Refill more than doubled the number of trades. With brokerage and taxes, the small gains we saw would shrink.
  6. Test your own strategy both ways. The result depended on the strategy and the period. You can run your own idea in the AI Strategy Finder or the AI Strategy Backtester and compare.

Advantages of this test

  • Large: 830 strategies, 1,660 backtests, not a handful of hand-picked portfolios.
  • Fair: each pair changes only one thing. Same strategy, same stocks, same dates, same exits.
  • Four groups of stocks, from large companies to small ones.
  • Checked over 5 years and over the last 3 years on their own, so one lucky period cannot decide the answer.

Limitations

  • Before costs. Brokerage, taxes and slippage are not taken out. Refill trades much more, so this flatters refill.
  • Rebalance strategies only. Strategies that buy on a signal instead of a date were not tested here.
  • One way to refill. We filled the place with the best-ranked stock the next morning. A stricter refill (for example, only above a higher bar) may behave differently.
  • Only 37 strategies passed all tests. Result 4 is a small group.
  • 5 years of Indian stocks. The return result changed between the full period and the last 3 years. Markets change.
  • Results are typical values (the middle of the group). Some single strategies did better with refill.

Findings in one place

  • Refill made the worst fall deeper in about 8 of 10 strategies, in both periods. Typical fall: about 25% β†’ 34%.
  • Over 5 years refill lowered the return in about 6 of 10 strategies (typical βˆ’1.1 points).
  • In the last 3 years refill earned more in 2 of 3 strategies (typical +1.2 points). Not stable across periods.
  • Strategies that sit in cash: clearly worse with refill (βˆ’3.8 points, fall 20.6% β†’ 40.8%).
  • Strategies already almost fully invested: little change over 5 years, a gain in the last 3 years.
  • Refill more than doubled the trades (196 β†’ 495), before costs.
The short answerMostly no. Buying a new stock the next morning made the worst fall deeper in 8 of 10 strategies and lowered the 5-year return in about 6 of 10. It helped only strategies that were already almost fully invested.
Disclaimer. This paper is for education only. It describes tests on past market data and is not investment advice or a recommendation to buy or sell anything. Past results do not promise future results. Numbers are before costs unless a table says otherwise. Trading in derivatives carries a high risk of loss. Please read our full disclaimer.
Get the next paper by email.One research paper every Sunday morning. Unsubscribe any time.

Test your own idea in the AI Strategy Finder

The same engine and market data behind this paper. Pick an index, press Find strategies, and see what holds up on data it has never seen.

Open the AI Strategy Finder β†’ More research