Buy 3 days before monthly options expiry, sell at expiry
Buy three trading days before the monthly options expiration (the third Friday) and sell at the close on expiration day.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.081R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs +0.013R
By trade and by day, sized to a first try
What the numbers say
On the laggard stocks the plan averaged −0.081R a trade after costs over 3696 trades, against −0.085R on today's winners. Before costs the average was about 0.013R, so costs account for the loss. Results were negative in bull (−0.055R), flat (−0.102R) and bear (−0.26R) markets.
How it was tested
Go long at the close three trading days before the monthly options expiration (third Friday) and exit at the close on expiration day.
- Side
- Long
- Its own exit
- Exit at the close on the monthly options expiration day (the third Friday, or the preceding trading day if that Friday is a market holiday)., checked at each close
- Time limit
- Exit at the close after 3 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
- Monthly expiration is the third Friday of each calendar month, moved to the prior trading day if that Friday is a holiday.
- Entry is at the close three trading days before expiration day, so the trade spans exactly three bars after entry.
- Stop and target were not named, so a 2 x ATR(14) stop and 4 x ATR(14) target are used as wide protective levels.
- The exit rule is calendar-based: close on expiration day, with max_hold_bars=3 as the time backstop.
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.
| Market | Trades | Per trade | t, by trade | t, by day | Random dates | Winners, per trade |
|---|---|---|---|---|---|---|
| Bull | 2,744 | −0.055R | −4.19 | −1.94 · 126d | −0.079R · beats 95% | −0.072R |
| Flat | 625 | −0.102R | −3.79 | −1.38 · 29d | −0.074R · beats 20% | −0.086R |
| Bear | 327 | −0.260R | −8.39 | −3.27 · 15d | −0.043R · beats 0% | −0.185R |
| All | 3,696 | −0.081R | −0.075R | −0.085R |
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.3 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 codeHide
from decimal import Decimal
from datetime import datetime, timedelta
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
def _nth_weekday(year, month, weekday, n):
first = datetime(year, month, 1)
day = 1 + (weekday - first.weekday()) % 7 + 7 * (n - 1)
return datetime(year, month, day)
def _last_weekday(year, month, weekday):
d = datetime(year + (month == 12), (month % 12) + 1, 1) - timedelta(days=1)
while d.weekday() != weekday:
d -= timedelta(days=1)
return d
def _easter(year):
a = year % 19
b = year // 100
c = year % 100
d = b // 4
e = b % 4
f = (b + 8) // 25
g = (b - f + 1) // 3
h = (19 * a + b - d - g + 15) % 30
i = c // 4
k = c % 4
l = (32 + 2 * e + 2 * i - h - k) % 7
m = (a + 11 * h + 22 * l) // 451
month = (h + l - 7 * m + 114) // 31
day = ((h + l - 7 * m + 114) % 31) + 1
return datetime(year, month, day)
def _observed(d):
if d.weekday() == 5:
return d - timedelta(days=1)
if d.weekday() == 6:
return d + timedelta(days=1)
return d
def _holidays(year):
hs = set()
ny = datetime(year, 1, 1)
if ny.weekday() != 5:
hs.add(_observed(ny))
hs.add(_nth_weekday(year, 1, 0, 3))
hs.add(_nth_weekday(year, 2, 0, 3))
hs.add(_easter(year) - timedelta(days=2))
hs.add(_last_weekday(year, 5, 0))
if year >= 2022:
hs.add(_observed(datetime(year, 6, 19)))
hs.add(_observed(datetime(year, 7, 4)))
hs.add(_nth_weekday(year, 9, 0, 1))
hs.add(_nth_weekday(year, 11, 3, 4))
hs.add(_observed(datetime(year, 12, 25)))
return hs
def _is_trading_day(d):
if d.weekday() >= 5:
return False
return d not in _holidays(d.year)
def _expiration(year, month):
first = datetime(year, month, 1)
day = 1 + (4 - first.weekday()) % 7 + 14
d = datetime(year, month, day)
while not _is_trading_day(d):
d -= timedelta(days=1)
return d
def _bar_date(bar):
try:
ts = bar.timestamp
except AttributeError:
ts = bar.date
return datetime(ts.year, ts.month, ts.day)
class PreOpexThreeDayDriftLong:
name = "pre_opex_three_day_drift_long"
description = "Long at the close three trading days before monthly opex, exit at the close on expiration day."
def __init__(self, atr_period: int = 14, stop_mult: float = 2.0, target_mult: float = 4.0, days_before: int = 3) -> None:
self._atr_period = atr_period
self._stop_mult = stop_mult
self._target_mult = target_mult
self._days_before = days_before
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < self._atr_period + 1:
return None
today = _bar_date(bars[-1])
exp = _expiration(today.year, today.month)
d = exp
n = 0
while n < self._days_before:
d -= timedelta(days=1)
if _is_trading_day(d):
n += 1
if d != today:
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 = bars[-1].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="Three trading days before monthly options expiration; long into opex drift.",
)
def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal, side: str, bars_held: int) -> bool:
today = _bar_date(bars[-1])
exp = _expiration(today.year, today.month)
return today >= expHypothetical 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.
Describe it in plain words and get the same honest test in about a minute.