Weak weekday close, long with ATR stop and target
At the latest close compute the stock's mean close-to-close return for the same weekday as tomorrow over the last 150 bars; require this mean to be positive and its hit rate >=58%. Require today's return < -1.0% and close in the lower third of the day's range. Enter long at the latest close; stop 1.5 x ATR(14) below; target 2.5 x ATR(14) above.
Many stocks carry a stable own-day-of-week return pattern from retail order-flow timing and institutional scheduling. After a weekday on which this stock has historically (past 150 bars, same weekday) closed negative at least 62% of the time, the next session's same-sign continuation is already priced, but on a day where the stock closed weak vs its own seasonal norm (close below the median same-weekday return) the expected mean reversion is positive. Compelled flows: scheduled weekday-specific retail and algorithmic order timing; persists because it is a per-name microstructure habit, not a pattern traders arbitrage away after costs.
Killed by costs
There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).
- +0.062R a trade before costs, −0.032R after the spread and the selection haircut.
42 large US stocks, 15 years
Before costs +0.063R
By trade and by day, sized to 362 rules
What the numbers say
Across 1295 laggard trades the idea made +0.062R a trade before costs but −0.032R after them, so costs erase the edge. Bull markets were near flat at 0.009R, flat markets −0.079R, bear markets −0.313R. Winners did better at 0.125R, yet the verdict rests on the laggards.
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 | 958 | +0.009R | 0.19 | −0.84 · 648d | −0.043R · beats 90% | +0.122R |
| Flat | 237 | −0.079R | −0.88 | −0.84 · 138d | −0.030R · beats 35% | +0.095R |
| Bear | 100 | −0.313R | −2.22 | −0.70 · 55d | −0.035R · beats 0% | +0.219R |
| All | 1,295 | −0.032R | −0.040R | +0.125R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 10.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
import math
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class DowSeasonalWeakCloseFadeLong:
name = 'dow_seasonal_negative_edge_fade_long'
description = 'Weak low-close down day ahead of a statistically positive own-weekday session'
def __init__(self, window: int = 150, min_hit: float = 0.58, min_tstat: float = 1.0, min_mean: float = 0.0005, min_samples: int = 20, max_today_ret: float = -0.01, close_pos_max: float = 0.3334, stop_atr: float = 1.5, target_atr: float = 2.5) -> None:
self._window = window
self._min_hit = min_hit
self._min_tstat = min_tstat
self._min_mean = min_mean
self._min_samples = min_samples
self._max_today_ret = max_today_ret
self._close_pos_max = close_pos_max
self._stop_atr = stop_atr
self._target_atr = target_atr
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < self._window + 20:
return None
cur = bars[-1]
prev = bars[-2]
pc = float(prev.close)
if pc <= 0:
return None
today_ret = float(cur.close) / pc - 1.0
if today_ret > self._max_today_ret:
return None
rng = float(cur.high - cur.low)
if rng <= 0:
return None
cpos = (float(cur.close) - float(cur.low)) / rng
if cpos > self._close_pos_max:
return None
today_wd = cur.timestamp.weekday()
if today_wd > 4:
return None
tom_wd = 0 if today_wd >= 4 else today_wd + 1
tom_rets = []
today_rets = []
n_bars = len(bars)
start = n_bars - 1 - self._window
if start < 1:
start = 1
for i in range(start, n_bars - 1):
p = float(bars[i - 1].close)
if p <= 0:
continue
r = float(bars[i].close) / p - 1.0
wd = bars[i].timestamp.weekday()
if wd == tom_wd:
tom_rets.append(r)
if wd == today_wd:
today_rets.append(r)
n = len(tom_rets)
if n < self._min_samples:
return None
mean = sum(tom_rets) / n
if mean < self._min_mean:
return None
hit = sum(1 for r in tom_rets if r > 0) / n
if hit < self._min_hit:
return None
var = sum((r - mean) ** 2 for r in tom_rets) / (n - 1)
if var <= 0:
return None
tstat = mean / (math.sqrt(var) / math.sqrt(n))
if tstat < self._min_tstat:
return None
if len(today_rets) >= 10:
srt = sorted(today_rets)
m = len(srt)
med = srt[m // 2] if m % 2 == 1 else (srt[m // 2 - 1] + srt[m // 2]) / 2.0
if today_ret >= med:
return None
atr_val = atr(bars, 14)
if atr_val is None or atr_val <= 0:
return None
atr_f = float(atr_val)
atr_dec = Decimal(str(atr_f))
entry = cur.close
stop = entry - Decimal(str(self._stop_atr)) * atr_dec
target = entry + Decimal(str(self._target_atr)) * atr_dec
if stop <= 0 or not (stop < entry < target):
return None
risk = entry - stop
rr = (target - entry) / risk
if rr < Decimal('1.5'):
return None
seas_score = min(40, max(0, int(20 + (tstat - self._min_tstat) * 20 + (hit - self._min_hit) * 50)))
depth = (-today_ret * pc) / atr_f
depth_score = min(35, max(0, int(depth * 20)))
close_score = min(25, max(0, int((1.0 - cpos / self._close_pos_max) * 25)))
strength = max(0, min(100, seas_score + depth_score + close_score))
thesis = ('Weak close (%.2f%%, lower %.0f%% of range) below own same-weekday median, ahead of a weekday '
'with mean %.2f%%, hit %.0f%%, t=%.2f over %d samples; expect seasonal order-flow mean reversion.'
% (today_ret * 100, cpos * 100, mean * 100, hit * 100, tstat, n))
return Candidate(
ticker=ticker,
side='buy',
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal('0.01')),
signal_strength=strength,
thesis=thesis,
asset_class='equity',
)
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.