Intraday selling, overnight buying, above 100-day average
Fire when the sum of 10-day open-to-close log returns is below -4% and the sum of 10-day close-to-open log returns is above +1%, and close is above the 100-day SMA. Enter long at close. Stop 2x ATR(14) below; target 2.5x ATR above.
When the cumulative intraday (open-to-close) return over 10 days is strongly negative while the overnight return is positive, retail-dominated intraday flow has been selling while institutions accumulate overnight. The overnight-versus-intraday asymmetry tends to persist, favoring the overnight holder.
Killed by costs
There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).
- +0.045R a trade before costs, −0.056R after the spread and the selection haircut.
42 large US stocks, 15 years
Before costs +0.045R
By trade and by day, sized to 362 rules
What the numbers say
Across 1533 laggard trades, the idea earned +0.045R before costs but −0.056R after them. By market type it ran −0.056R in bull, +0.077R in flat and −0.430R in bear, where it beat 0.0% of random-date draws. The small pre-cost edge does not survive trading costs, which is why costs sink it.
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 | 1,179 | −0.056R | −1.19 | −1.74 · 771d | −0.037R · beats 30% | −0.049R |
| Flat | 261 | +0.077R | 0.82 | 1.10 · 181d | −0.008R · beats 80% | +0.165R |
| Bear | 93 | −0.430R | −3.08 | −3.11 · 47d | −0.013R · beats 0% | +0.414R |
| All | 1,533 | −0.056R | −0.030R | +0.004R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 13.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
import math
from decimal import Decimal
from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class OvernightDominanceIntradayFadeLong:
name = "overnight_dominance_intraday_fade_long"
description = "Long when 10-day intraday log returns sum < -4% while overnight log returns sum > +1%, above the 100-day SMA."
def __init__(self, lookback: int = 10, intraday_thresh: float = -0.04, overnight_thresh: float = 0.01, sma_len: int = 100, atr_len: int = 14, swing_buffer_atr: float = 0.25, min_risk_atr: float = 1.0, max_risk_atr: float = 2.0, target_atr: float = 2.5, min_rr: float = 1.6) -> None:
self._lookback = lookback
self._intra = intraday_thresh
self._ovn = overnight_thresh
self._sma_len = sma_len
self._atr_len = atr_len
self._buf = swing_buffer_atr
self._min_risk = min_risk_atr
self._max_risk = max_risk_atr
self._target_atr = target_atr
self._min_rr = min_rr
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(self._sma_len, self._lookback + 1, self._atr_len + 1) + 5
if len(bars) < need:
return None
n = len(bars)
intra = 0.0
ovn = 0.0
for i in range(n - self._lookback, n):
b = bars[i]
prev = bars[i - 1]
if b.open <= 0 or b.close <= 0 or prev.close <= 0:
return None
intra += math.log(float(b.close) / float(b.open))
ovn += math.log(float(b.open) / float(prev.close))
if intra >= self._intra or ovn <= self._ovn:
return None
current = bars[-1]
sma_val = sma([b.close for b in bars], self._sma_len)
if sma_val is None:
return None
sma_dec = Decimal(str(sma_val))
if sma_dec <= 0 or current.close <= sma_dec:
return None
atr_val = atr(bars, self._atr_len)
if atr_val is None or atr_val <= 0:
return None
a = Decimal(str(atr_val))
entry = current.close
swing_low = min(b.low for b in bars[-self._lookback:])
stop = swing_low - Decimal(str(self._buf)) * a
min_stop = entry - Decimal(str(self._max_risk)) * a
max_stop = entry - Decimal(str(self._min_risk)) * a
if stop < min_stop:
stop = min_stop
if stop > max_stop:
stop = max_stop
risk = entry - stop
if risk <= 0 or stop <= 0:
return None
target = entry + Decimal(str(self._target_atr)) * a
rr_floor = entry + Decimal(str(self._min_rr)) * risk
if target < rr_floor:
target = rr_floor
rr = (target - entry) / risk
if rr < Decimal("1.5"):
return None
intra_score = int(min(40, max(0, (abs(intra) / abs(self._intra) - 1.0) * 40 + 15)))
ovn_score = int(min(30, max(0, (ovn / self._ovn - 1.0) * 15 + 10)))
dist = float((entry - sma_dec) / sma_dec)
trend_score = int(min(30, max(0, dist * 300)))
strength = max(0, min(100, intra_score + ovn_score + trend_score))
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=strength,
thesis=(
f"10-day intraday log return {intra*100:.1f}% vs overnight {ovn*100:.1f}%: "
"intraday selling is being absorbed by overnight accumulation while price holds "
"above the 100-day SMA; expecting the overnight bid to win."
),
)
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.