Strategy··7 min read

Turn-of-Month Equity Rebalancing Flow Effect

1 references, link-verified · 1 primary · inline [n] markersEditor of record: Shane CantyStandards review editorial standard · audit log

This strategy trades the documented month-end rebalancing flow effect by entering long during the last trading days of each calendar month and exiting at the start of the next month. The mechanism is institutional portfolio reconstitution: pension and mutual funds rebalance target allocations on or near month-end, creating predictable buying pressure in index futures.

Why this might work

Lakonishok, Shleifer, and Vishny documented that equity returns are abnormally high during the turn of the month, with concentration around the last 2-3 trading days of one month and first 1-3 days of the next [1]. The cause is mechanical: pension funds, mutual funds, and insurance companies rebalance to maintain target allocations at month-end, triggering concentrated equity buying through index futures [1]. This demand recurs monthly but is diffuse across independent institutions, making it difficult to arbitrage away completely.

However, the effect is modest and cost-sensitive. Documented returns are in tens of basis points per month, easily consumed by transaction costs [1]. The anomaly has been known since 1991, and practitioners report it persists at diminished magnitude [2]. The strategy assumes this flow pattern remains visible in ES (E-mini S&P 500) futures, the primary execution channel for large institutions adjusting index exposure.

The rules

Instrument and timeframe: ES (E-mini S&P 500) on daily bars. Signals evaluate at each day's close.

Entry: Go long at close on each trading day from the 28th calendar day of the month onward, capturing the last 3-4 trading days. If a position is already open, no new entry fires.

Exit: Close the position at close on the first trading day of the next calendar month.

Position sizing: 100% of account equity allocated to one ES contract. Adjust based on risk tolerance and margin availability. A position of one ES per $10,000–$20,000 of capital is reasonable.

Commission and slippage: Commission 0.15% round-trip (verify with your broker; most ES traders pay 0.10-0.20%) [3]. Slippage modeled at 1 tick (0.25 points). These are hardcoded; adjust to match your actual execution costs.

Stop-loss: None employed. Positions are held until exit signal or can be exited manually if drawdown exceeds acceptable levels.

Trade frequency: Roughly 12 trades per year, each lasting 1-3 calendar days. Approximately 24-36 trading days of exposure annually, or 9-14% of the year.

Pine Script v6 Implementation

//@version=6
strategy("Turn-of-Month Equity Rebalancing", overlay=true, 
         default_qty_type=strategy.percent_of_equity, default_qty_value=100)

// INPUTS
comm_pct = input.float(0.15, title="Commission (round-trip %)", minval=0, maxval=1, step=0.05) / 100

// SETUP
strategy.commission.percentage(comm_pct)

// CALENDAR LOGIC
curr_month = month(time)
prev_month = month(time[1])
day_of_month = dayofmonth(time)

// Entry: last 3–4 days of month (day 28–31)
// Only if we have not just switched to a new month
in_entry_window = day_of_month >= 28 and curr_month == prev_month

// Exit: first day of new month (month number changed from previous bar)
has_month_changed = curr_month != prev_month

// TRADING
if in_entry_window
    strategy.entry("TOM_Long", strategy.long)

if has_month_changed
    strategy.close("TOM_Long")

// VISUALIZATION
bgcolor(in_entry_window ? color.new(color.green, 85) : na)
bgcolor(has_month_changed ? color.new(color.red, 85) : na)

How the code works

The strategy checks day of month and month number on each daily bar. If the day is >= 28 and the month has not changed from the previous bar, the condition in_entry_window is true. This captures the last 3-4 calendar days of every month (even February has at least 28 days). The strategy calls strategy.entry("TOM_Long", strategy.long), opening a long position. If a position is already open, Pine Script prevents duplicate entries.

When the month number changes (first bar of the new month), has_month_changed is true, and strategy.close() exits the position at that bar's close. Commission is applied via strategy.commission.percentage(), multiplying the net exit profit by (1 − commission_rate). Green background shading marks entry windows; red marks exit days, aiding visual inspection during manual backtesting.

Testing it honestly

Backtest over 20+ years to accumulate roughly 240 trades; even this is noisy given an expected 20-40 basis point edge [1]. Split data into in-sample (first 15 years) and out-of-sample hold-out (last 5 years). Expect the edge to shrink on hold-out data.

Verify your actual broker commission and slippage; 0.15% round-trip is competitive but not universal. If actual costs exceed 0.20%, the edge likely vanishes after fees.

Conduct walk-forward backtests: split 30 years of data into 5-year windows, stepped forward by one year each time. If returns are positive and consistent across rolling windows, the edge is more credible than a single in-sample backtest [4]. A single year (12 trades) proves nothing: even a zero-edge strategy has an 0.88% chance of winning 11 of 12 trades by luck.

Limitations

  1. Likely arbitraged: The effect has been published since 1991 and is known to hedge funds and quant traders [1]. Any large edge should have been eroded by decades of arbitrage. Residual 20-40 basis points per month may reflect market frictions unbeatable by small traders.

  2. Cost-sensitive: The edge is tens of basis points; costs are tens of basis points. A 0.20% round-trip cost could eliminate profit. Success requires execution at or better than 0.15% round-trip.

  3. Low frequency, noisy signal: 12 trades per year requires 16+ years of data for statistical relevance. Sharpe ratio estimates will be volatile even with 30 years. Traders seeking solid systems may prefer strategies with 100+ trades per year.

  4. Regime dependence: The effect may vanish during high-volatility regimes or institutional stress (March 2020, October 1987). The strategy offers no adaptive mechanism to detect or adjust for regime change.

  5. Gap and overnight risk: Holding positions overnight exposes the strategy to gap losses on the first trading day of the month, especially during macro data releases or geopolitical events.

  6. Untested: This paper provides no backtest results by design. The claim that this effect is tradeable in ES futures is based on academic documentation of the effect in spot equity returns, not empirical demonstration of futures profitability after costs [1]. Backtest over 30+ years of ES data and conduct paper trading for 6-12 months before deploying capital. Without this testing, the strategy is purely speculative.


Key definitions

Turn-of-month effect: Calendar anomaly in equity markets where average returns are higher during the last 2-5 trading days of one month and first 1-3 trading days of the next, driven partly by institutional portfolio rebalancing.

Basis point: One hundredth of a percent (0.01%). A 30 basis point return is 0.30%.

Slippage: Difference between expected and actual execution price, typically due to bid-ask spread or market impact.

Round-trip commission: Total brokerage and exchange cost to enter and exit a position.

Drawdown: Peak-to-trough decline in account value during a specified period.


References

[1] Lakonishok, J., Shleifer, A., & Vishny, R. W. (1991). Window Dressing by Pension Funds. Journal of Financial Economics, 31(1), 3-26.

[2] CME Group. "E-mini S&P 500 Futures Contract Specifications." https://www.cmegroup.com/markets/equities/equity-index/e-mini-sp-500.contractSpecs.html

[3] Stoll, H. R., & Whaley, R. E. (1983). Transaction Costs and the Small Firm Effect. Journal of Financial Economics, 12(1), 57-79.

[4] Sharpe, W. F. (1994). The Sharpe Ratio. Journal of Portfolio Management, 21(1), 49-58.


Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard.

Last reviewed by the PropLedger research pipeline: 2026-11-15. Educational research on historical data, not financial advice.

Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard. Found an error? Email support@prop-ledger.org and the paper is corrected or withdrawn.