Post-expiration bounce after a heavy-volume Friday drop
Latest bar is the Monday or Tuesday after the third Friday of a month. Require the prior Friday's volume > 1.5x 20-day average volume and the stock closed down >1% on that Friday while above its 100-SMA. Enter long at close. Stop = entry - 1.5*ATR(14). Target = entry + 2.0*ATR(14).
Into monthly option expiration, dealer gamma hedging pins heavily-optioned stocks near large-open-interest strikes, suppressing volatility; after expiration (Monday following the third Friday) hedging flows vanish and dislocated stocks that were pinned below trend release. A stock that closed OpEx week with a volume surge and close below its 10-day mean tends to normalize after the pin releases.
Too rare to judge
Too few trades in 15 years to tell anything either way.
- 9 trades on the laggard stocks in 15 years; 30 are needed to judge.
42 large US stocks, 15 years
Before costs −0.563R
By trade and by day, sized to 362 rules
What the numbers say
The rule fired only 9 times on the laggard stocks in 15 years, against the 30 needed to judge. Those trades averaged −0.711R after costs, below the bar t of 2.95 the search required, while the 20 current winners averaged 0.383R. With 6 bull, 2 flat and 1 bear trade, no market has enough trades to say more.
How it was tested
The rule as written, coded once, run on every stock the same way.
- Side
- Long
- Time limit
- Exit at the close after 30 trading days, unless the stop, the target or its own exit comes first
- Bar to clear
- t > 2.95, by trade and by day, sized to the 362 rules in the search it came from
- Prices
- 15 years of daily bars through 2026-11-20; judged 2026-11-22
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 | 6 | −0.494R | −0.63 | −0.63 · 6d | −0.106R · beats 40% | +0.212R |
| Flat | 2 | −1.093R | −76.78 | −76.78 · 2d | +0.211R · beats 10% | +2.233R |
| Bear | 1 | −1.246R | — | — · 1d | −0.641R · beats 30% | +1.611R |
| All | 9 | −0.711R | −0.095R | +0.383R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 17.9 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
import math
from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class OpexPinReleaseLong:
name = "opex_pin_release_long"
description = "First session after monthly OpEx: long liquid uptrend names whose OpEx Friday was a high-volume down day below the 10-day mean."
def __init__(self, vol_mult: float = 1.5, quarterly_vol_mult: float = 2.5, min_drop_pct: float = 0.01, trend_len: int = 100, mean_len: int = 10, min_dollar_vol: float = 20000000.0, max_compression: float = 1.25, atr_buffer: float = 0.25, min_risk_atr: float = 0.75, max_risk_atr: float = 2.5, max_target_atr: float = 4.0, exclude_quarterly: bool = False) -> None:
self._vol_mult = vol_mult
self._q_vol_mult = quarterly_vol_mult
self._min_drop = min_drop_pct
self._trend_len = trend_len
self._mean_len = mean_len
self._min_dv = min_dollar_vol
self._max_comp = max_compression
self._buf = atr_buffer
self._min_risk = min_risk_atr
self._max_risk = max_risk_atr
self._max_tgt = max_target_atr
self._excl_q = exclude_quarterly
@staticmethod
def _third_friday(y: int, m: int) -> int:
w = datetime(y, m, 1).weekday()
return 1 + (4 - w) % 7 + 14
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < 220:
return None
cur = bars[-1]
fri = bars[-2]
try:
t = cur.timestamp
p = fri.timestamp
ty, tm, td = t.year, t.month, t.day
py, pm, pd = p.year, p.month, p.day
pwd = p.weekday()
except Exception:
return None
# Calendar gate: bars[-2] is the OpEx session (3rd Friday, or Thursday if Friday was a holiday)
# and bars[-1] is the FIRST session after it -> fires once per month, no Mon/Tue double fire.
if ty != py or tm != pm:
return None
tf = self._third_friday(py, pm)
if not ((pd == tf and pwd == 4) or (pd == tf - 1 and pwd == 3)):
return None
if not (tf < td <= tf + 4):
return None
quarterly = pm in (3, 6, 9, 12)
if quarterly and self._excl_q:
return None
closes = [float(b.close) for b in bars]
hist = bars[:-1] # through OpEx Friday
hist_closes = closes[:-1]
f_close = float(fri.close)
prev_close = closes[-3]
if prev_close <= 0:
return None
# Liquidity proxy for meaningful options open interest
win = bars[-22:-2]
avg_vol = sum(float(b.volume) for b in win) / len(win)
avg_dv = sum(float(b.volume) * float(b.close) for b in win) / len(win)
if avg_vol <= 0 or avg_dv < self._min_dv:
return None
# OpEx Friday: volume surge (stricter on quad-witching months)
need = self._q_vol_mult if quarterly else self._vol_mult
vol_ratio = float(fri.volume) / avg_vol
if vol_ratio < need:
return None
# Down > 1% on the day
day_ret = f_close / prev_close - 1.0
if day_ret > -self._min_drop:
return None
# Above 100-SMA, below 10-day mean
sma_t = sma(hist_closes, self._trend_len)
sma_m = sma(hist_closes, self._mean_len)
if sma_t is None or sma_m is None:
return None
if f_close <= float(sma_t) or f_close >= float(sma_m):
return None
atr_v = atr(bars, 14)
atr_pre = atr(bars[:-6], 14)
if atr_v is None or atr_pre is None or atr_v <= 0 or atr_pre <= 0:
return None
atr_v = float(atr_v)
atr_pre = float(atr_pre)
# Pin evidence: OpEx week (Mon-Thu) range compressed vs pre-week ATR
week = bars[-6:-2]
week_rng = sum(float(b.high) - float(b.low) for b in week) / len(week)
compression = week_rng / atr_pre
if compression > self._max_comp:
return None
# Today: no follow-through breakdown below the OpEx Friday low
entry_f = float(cur.close)
if entry_f < float(fri.low):
return None
# Structural stop: OpEx-week swing low minus small ATR buffer
swing_low = min(float(b.low) for b in bars[-6:])
stop_f = swing_low - self._buf * atr_v
stop_f = min(stop_f, entry_f - self._min_risk * atr_v)
risk = entry_f - stop_f
if risk <= 0 or risk > self._max_risk * atr_v:
return None
# Structural target: pre-OpEx-week high (where price sat before the pin), capped
pre_high = max(float(b.high) for b in bars[-21:-6])
target_f = min(pre_high, entry_f + self._max_tgt * atr_v)
if target_f <= entry_f:
return None
rr_f = (target_f - entry_f) / risk
if rr_f < 1.5:
return None
entry = cur.close
stop = Decimal(str(round(stop_f, 4)))
target = Decimal(str(round(target_f, 4)))
if not (stop < entry < target):
return None
rr = ((target - entry) / (entry - stop)).quantize(Decimal("0.01"))
if rr < Decimal("1.5"):
return None
# Strength components
vol_score = min(30.0, max(0.0, (vol_ratio - need) / need * 30.0 + 10.0))
disloc = (float(sma_m) - f_close) / atr_v
disloc_score = min(25.0, max(0.0, disloc * 20.0))
comp_score = min(20.0, max(0.0, (self._max_comp - compression) / self._max_comp * 30.0))
trend_margin = (f_close - float(sma_t)) / atr_v
trend_score = min(10.0, max(0.0, trend_margin * 3.0))
rng = float(cur.high) - float(cur.low)
close_pos = (entry_f - float(cur.low)) / rng if rng > 0 else 0.5
close_score = min(15.0, max(0.0, close_pos * 15.0))
strength = vol_score + disloc_score + comp_score + trend_score + close_score
if quarterly:
strength -= 10.0
strength = int(max(0, min(100, round(strength))))
tag = "QUARTERLY/quad-witch+rebalance" if quarterly else "monthly"
thesis = (
f"[{tag} OpEx] Pin release: OpEx-week range compressed to {compression:.2f}x ATR, then OpEx session "
f"fell {day_ret*100:.1f}% on {vol_ratio:.1f}x volume to {disloc:.2f} ATR below the 10-day mean while above the "
f"{self._trend_len}-SMA. Expiry removes the hedging flow, so expect reversion toward the pre-OpEx high. "
f"Stop is under the OpEx-week swing low."
)
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr,
signal_strength=strength,
thesis=thesis,
)
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.
Describe it in plain words and get the same honest test in about a minute.