Monday gap-up, strong close above 50-day average
Latest bar is Monday. Open >= 2% above Friday close, close in the top 25% of the day's range, close above 50-day SMA, volume >= 1.2x 20-day average. Long at close. Stop = entry - 1.5*ATR(14). Target = entry + 2.5*ATR(14).
Weekend news accumulation resolves at Monday's open; gap-ups in uptrending stocks that close near highs reflect information absorbed by institutions who cannot trade over the weekend, and trend followers add. Continuation is stock-specific on daily bars.
Indistinguishable from luck
It looks positive, but not more than chance would produce at this many tries, or than the same plan on random dates.
- Positive (+0.267R a trade), but no market clears t > 2.95 by trade and by day.
42 large US stocks, 15 years
Before costs +0.345R
By trade and by day, sized to 362 rules
What the numbers say
On the 22 laggards the rule averaged 0.267R a trade after costs over 38 trades, against −0.14R on the winners. No market cleared the t of 2.95 bar: bull 0.03R (t 0.10), flat 0.47R (t 1.16), bear 0.962R (t 1.39) from only 4 trades. Gains this small and spread thin are not separable from luck.
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 | 22 | +0.030R | 0.10 | 1.18 · 17d | −0.020R · beats 50% | −0.162R |
| Flat | 12 | +0.470R | 1.16 | 0.16 · 8d | −0.101R · beats 95% | −0.178R |
| Bear | 4 | +0.962R | 1.39 | 1.39 · 4d | +0.393R · beats 95% | +1.583R |
| All | 38 | +0.267R | −0.002R | −0.140R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 4.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 core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class FirstDayOfWeekGapContinuationLong:
name = 'first_trading_day_of_week_big_gap_continuation_long'
description = 'First-trading-day-of-week gap-up >=2% that holds the gap, closes in top 25% of range above 50-SMA on >=1.2x volume'
def __init__(self, gap_pct: float = 0.02, close_pos_min: float = 0.75, vol_mult: float = 1.2, sma_len: int = 50, atr_len: int = 14, stop_atr: float = 1.5, target_atr: float = 2.5, first_day_of_week_only: bool = True, require_gap_hold: bool = True) -> None:
self._gap_pct = gap_pct
self._close_pos_min = close_pos_min
self._vol_mult = vol_mult
self._sma_len = sma_len
self._atr_len = atr_len
self._stop_atr = stop_atr
self._target_atr = target_atr
self._first_dow_only = first_day_of_week_only
self._require_gap_hold = require_gap_hold
def _is_first_day_of_week(self, prev: Bar, cur: Bar) -> bool:
try:
c = cur.timestamp.isocalendar()
p = prev.timestamp.isocalendar()
except Exception:
return False
return (c[0], c[1]) != (p[0], p[1])
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(self._sma_len, 21, self._atr_len + 1) + 5
if len(bars) < need:
return None
cur = bars[-1]
prev = bars[-2]
# 1. First trading day of the ISO week (Monday, or Tuesday after a Monday holiday)
if self._first_dow_only and not self._is_first_day_of_week(prev, cur):
return None
# 2. Gap-up of at least gap_pct vs the prior session close
prev_close = prev.close
if prev_close <= 0:
return None
gap = float((cur.open - prev_close) / prev_close)
if gap < self._gap_pct:
return None
# 3. Gap hold: the intraday low never filled back to the prior close
if self._require_gap_hold and cur.low <= prev_close:
return None
# 4. Close in the top quarter of the day's range
rng = cur.high - cur.low
if rng <= 0:
return None
close_pos = float((cur.close - cur.low) / rng)
if close_pos < self._close_pos_min:
return None
# 5. Trend filter: close above the 50-day SMA
closes = [b.close for b in bars]
sma_mid = sma(closes, self._sma_len)
if sma_mid is None:
return None
sma_mid_d = Decimal(str(sma_mid))
if cur.close <= sma_mid_d:
return None
# 6. Volume at least vol_mult x the prior 20-day average
prior_vols = [float(b.volume) for b in bars[-21:-1]]
avg_vol = sum(prior_vols) / len(prior_vols)
if avg_vol <= 0:
return None
vol_ratio = float(cur.volume) / avg_vol
if vol_ratio < self._vol_mult:
return None
# Trade plan per the operator rules
atr_val = atr(bars, self._atr_len)
if atr_val is None or atr_val <= 0:
return None
atr_d = Decimal(str(atr_val))
entry = cur.close
stop = entry - Decimal(str(self._stop_atr)) * atr_d
target = entry + Decimal(str(self._target_atr)) * atr_d
if not (stop < entry < target) or stop <= 0:
return None
risk = entry - stop
rr = (target - entry) / risk
if rr < Decimal('1.5'):
return None
# signal_strength sub-scores
# Volume: 1.2x -> 0, 3.2x+ -> 30
vol_score = min(30, max(0, int((vol_ratio - self._vol_mult) * 15)))
# Gap size relative to ATR (bigger information shock): 0..25
gap_atr = float((cur.open - prev_close) / atr_d)
gap_score = min(25, max(0, int(gap_atr * 12)))
# Close strength within range: 0.75 -> 0, 1.0 -> 20
close_score = min(20, max(0, int((close_pos - self._close_pos_min) / max(1e-9, 1 - self._close_pos_min) * 20)))
# Trend alignment: close above 200-SMA and 50-SMA rising
trend_score = 0
if len(bars) >= 205:
sma_long = sma(closes, 200)
if sma_long is not None and cur.close > Decimal(str(sma_long)):
trend_score += 15
sma_mid_prev = sma(closes[:-5], self._sma_len)
if sma_mid_prev is not None and sma_mid > sma_mid_prev:
trend_score += 10
strength = max(0, min(100, vol_score + gap_score + close_score + trend_score))
day_label = 'first trading day of the week' if self._first_dow_only else 'session'
thesis = (
f'Weekend-news gap continuation: {day_label} opened {gap * 100:.1f}% above the prior close, '
f'held the gap (low > prior close), closed at {close_pos * 100:.0f}% of its range above the '
f'{self._sma_len}-SMA on {vol_ratio:.1f}x average volume; institutional absorption plus '
f'trend-follower adds should carry price toward +{self._target_atr} ATR.'
)
return Candidate(
ticker=ticker,
side='buy',
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal('0.01')),
signal_strength=int(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.