▌ LAB

Lab: tested

Experimental strategies. A research bot reads market research every Sunday, writes down at most two ideas with fixed rules, and tests each one once. A pass goes onto paper for about 3 months. Only then does it reach me to approve or shelve. Built 2026-12-02 09:12 UTC.

month-end-rebalance-spy: failed backtest

Step aside from SPY at month-end when pension funds must sell stocks

Why it might work: Pension funds and balanced funds that hold about 60% stocks and 40% bonds rebalance on a calendar, mostly in the last days of each month. If stocks have beaten bonds since the last month-end, those funds hold too much stock and sell stocks and buy bonds near month-end, which pushes stock returns down for a few days. Harvey, Mazzoleni and Melone (2026, NBER w33554, p.13-14) found that this calendar signal predicts S&P 500 returns minus 10-year Treasury returns only in the last week of the month, with the strongest effect in the last four days, over 1997 to 2023. So holding 10-year Treasuries (IEF) instead of SPY in those days when stocks are overweight should give the same return with fewer bad days. Evidence against it: if, in the test half, SPY did no worse than IEF on the days the rule switches, or if the rule fails the drawdown and MAR lines because it is still fully in stocks during every crash. The paper is a long-short futures strategy, so this long-only version can only avoid the selling pressure, not profit from it.

Rules: At each close, find the last close of the previous month (the day a calendar rebalancer resets to 60/40). Compare SPY's price change and IEF's price change since that close. If the next weekday falls in the last 5 weekdays of the current month and SPY has gained more than IEF since that close (the 60/40 portfolio is overweight stocks, the paper's Calendar signal is above zero), hold IEF with weight 1 for the next day. On every other day hold SPY with weight 1. Parameters from the source, not tuned: the last week of the month (the paper's week4, defined as the last 5 days, p.14) and the 60/40 rebalanced on the last business day of the month (Appendix B, eq. B.2), whose drift sign is the same as comparing the two price changes. Known limits: weekdays are used instead of trading days so a holiday inside the last week makes the window one trading day shorter. Prices are split-adjusted but not dividend-adjusted, so IEF's monthly coupon (ex-dividend near the start of the month) makes its month-to-date change slightly too low, which tilts the signal toward 'stocks overweight'. IEF is used for the 10-year Treasury note futures in the paper.

Sources: https://www.nber.org/papers/w33554, https://www.edhec.edu/sites/default/files/2026-03/Scientific%20paper.%20ssrn-5122748.pdf, https://rpc.cfainstitute.org/blogs/enterprising-investor/2025/rebalancings-hidden-cost-how-predictable-trades-cost-pension-funds-billions

the rulehold SPY
1x2x5x2002-07-302014-09-242026-12-01

Growth of 1 on a log scale, after costs. The test half starts 2014-09-26.

CAGRMax drawdownMARAgainst the bar
The rule, test half+9.3%-34.4%0.27
hold SPY+IEF+7.1%-22.9%0.31MAR under 0.50
hold SPY+11.4%-34.1%0.33MAR under 0.50
The rule, train half+5.4%-54.7%0.10in the market 100% of test days

Backtest: FAIL hold SPY+IEF: MAR under 0.50; hold SPY: MAR under 0.50