Skip to content
The Casebook · A classic strategy

Turn of the month: buy last day, sell 4 days later

Turn of the month: buy at the close of the last trading day of the month and sell 4 trading days later.
VerdictTested Nov 22, 2026

Loses money

After costs it lost money on the stocks that decide the verdict.

  • −0.059R a trade after costs on the laggard stocks.
Trades on the laggards
3,588

42 large US stocks, 15 years

Per trade, after costs
−0.059R

Before costs +0.018R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

On the laggard stocks, 3588 trades averaged −0.059R after costs, against 0.01852212925653086R before costs, so costs account for the loss. Bull markets were −0.075R and flat markets −0.053R, with random dates scoring −0.0724R and −0.0422R. Bear markets were the exception at 0.037R, beating 95% of random draws.

How it was tested

Buy at the close of the last trading day of each calendar month and exit at the close 4 trading days later.

Side
Long
Time limit
Exit at the close after 4 trading days, unless the stop, the target or its own exit comes first
Bar to clear
t > 2.01, by trade and by day, sized to a first try (one idea, tested once)
Prices
15 years of daily bars through 2026-11-20; judged 2026-11-22
Choices made where the idea was open
  • Last trading day of the month is taken as the final bar dated within a calendar month in the data
  • Exit is the close of the 4th trading day after entry, set via max_hold_bars=4
  • No stop or target was named, so wide protective ones were chosen (3 x ATR(14) stop, 6 x ATR(14) target) so the time exit normally decides the trade
  • Long side only, as the idea says buy

The evidence

The laggards decide: 22 large stocks that lagged or fell, where hindsight can't flatter a rule. Today's winners sit beside them to show what survivorship would add.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull2,439−0.075R−7.32−3.31 · 112d−0.072R · beats 40%+0.005R
Flat801−0.053R−2.79−0.97 · 37d−0.042R · beats 25%+0.015R
Bear348+0.037R1.640.54 · 16d−0.034R · beats 95%+0.030R
All3,588−0.059R−0.062R+0.009R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 14.5 bps) plus 0.045R for the fills a real order wouldn't get. “By day” groups trades opened the same day, so a rule that fires on the same dates for every stock counts as a few events. “Random dates” places the same plan on random days of the same stocks in the same kind of market, 20 times; the idea must beat 95% of those draws.

The scanner we wroteShow the code
from decimal import Decimal
from datetime import timedelta

from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate


class TurnOfMonthLong4DayHold:
    name = "turn_of_month_long_4_day_hold"
    description = "Long at the close of the last trading day of the calendar month, 3xATR stop, 6xATR target, 4-day time exit."

    def __init__(self, atr_period: int = 14, stop_mult: float = 3.0, target_mult: float = 6.0) -> None:
        self._atr_period = atr_period
        self._stop_mult = stop_mult
        self._target_mult = target_mult

    @staticmethod
    def _bar_date(b):
        try:
            return b.timestamp
        except AttributeError:
            return b.date

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._atr_period + 1:
            return None
        current = bars[-1]
        d = self._bar_date(current)
        if d.weekday() >= 5:
            return None
        # next weekday after today; if it falls in a different month, today is the last trading day
        nxt = d + timedelta(days=1)
        while nxt.weekday() >= 5:
            nxt = nxt + timedelta(days=1)
        if nxt.month == d.month:
            return None

        atr_val = atr(bars, self._atr_period)
        if atr_val is None or atr_val <= 0:
            return None
        atr_dec = Decimal(str(atr_val))
        entry = current.close
        stop = entry - Decimal(str(self._stop_mult)) * atr_dec
        target = entry + Decimal(str(self._target_mult)) * atr_dec
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None
        rr = (target - entry) / risk

        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=50,
            thesis="Last trading day of the calendar month; long at the close for a 4-day hold.",
        )

Hypothetical results from our own backtest of the rule as restated, on 42 large US stocks over 15 years. Past performance, real or simulated, does not predict future results. Research and education only; not investment advice.

Have an idea of your own?

Describe it in plain words and get the same honest test in about a minute.

Run the Gauntlet
Turn of the month: buy last day, sell 4 days later: Loses money · EdgeProven