Skip to content
The Casebook · An idea an AI invented

Friday weak close above 100-day average, buy for the weekend

Latest bar is a Friday; close in the lowest 25% of the day's range, close down >1.5% on the day, and close above the 100-SMA. Enter long at close. Stop = entry - 1.5*ATR(14). Target = entry + 1.5*ATR(14).
Why the AI thought it might work

Risk-averse traders and funds cut exposure before weekends (event-risk aversion), pushing prices down into Friday's close with a premium that earns back on Monday as the risk premium for bearing weekend risk is collected. The effect is a day-of-week flow and shows in Friday close position within the range.

VerdictTested Nov 22, 2026

Loses money

After costs it lost money on the stocks that decide the verdict.

  • −0.409R a trade after costs on the laggard stocks.
Trades on the laggards
183

42 large US stocks, 15 years

Per trade, after costs
−0.409R

Before costs −0.203R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the 22 laggard stocks, 183 trades averaged −0.409R after costs (−0.204R before costs). Bull markets gave −0.505R and bear markets −0.726R, with random dates beaten in 0.0% and 15% of draws. Flat markets gave 0.324R but that rested on 31 trades over 21 days (t 0.32 by day). Winners averaged 0.05R.

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.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull115−0.505R−2.57−1.44 · 75d−0.194R · beats 0%−0.060R
Flat31+0.324R1.020.32 · 21d−0.036R · beats 95%+0.612R
Bear37−0.726R−2.44−0.69 · 13d−0.361R · beats 15%−0.497R
All183−0.409R−0.201R+0.050R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 11.8 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 code
from decimal import Decimal

from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate


class FridayDeriskReversionLong:
    name = "friday_close_weekend_gap_reversion_long"
    description = "Friday intraday de-risking selloff closing near the low above the 100-SMA; long for reversion to Thursday's close (weekday param enables Mon-Thu control)."

    def __init__(
        self,
        weekday: int = 4,
        min_drop_pct: float = 0.015,
        max_close_pos: float = 0.25,
        sma_len: int = 100,
        atr_len: int = 14,
        stop_buffer_atr: float = 0.25,
        min_risk_atr: float = 0.5,
        max_open_gap_pct: float = 0.005,
        min_rr: float = 1.6,
    ) -> None:
        self._weekday = weekday
        self._min_drop = Decimal(str(min_drop_pct))
        self._max_close_pos = Decimal(str(max_close_pos))
        self._sma_len = sma_len
        self._atr_len = atr_len
        self._stop_buf = Decimal(str(stop_buffer_atr))
        self._min_risk = Decimal(str(min_risk_atr))
        self._max_gap = Decimal(str(max_open_gap_pct))
        self._min_rr = Decimal(str(min_rr))
        if weekday != 4:
            self.name = "weekday" + str(weekday) + "_derisk_reversion_control"

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._sma_len + 25:
            return None
        cur = bars[-1]
        prev = bars[-2]

        # Day-of-week filter (Friday by default; 0-3 = control runs)
        if cur.timestamp.weekday() != self._weekday:
            return None

        rng = cur.high - cur.low
        if rng <= 0 or prev.close <= 0:
            return None

        # Close in the bottom quartile of the day's range
        close_pos = (cur.close - cur.low) / rng
        if close_pos > self._max_close_pos:
            return None

        # Down more than 1.5% on the day
        drop_amt = prev.close - cur.close
        drop = drop_amt / prev.close
        if drop < self._min_drop:
            return None

        # Selling must happen in-session (de-risking flow), not as an overnight news gap
        open_gap = (prev.close - cur.open) / prev.close
        if open_gap > self._max_gap:
            return None

        closes = [b.close for b in bars]
        sma_now = sma(closes, self._sma_len)
        if sma_now is None:
            return None
        sma_dec = Decimal(str(sma_now))
        if cur.close <= sma_dec:
            return None

        atr_val = atr(bars, self._atr_len)
        if atr_val is None or atr_val <= 0:
            return None
        atr_dec = Decimal(str(atr_val))

        entry = cur.close
        # Structural stop under Friday's low; floor risk to avoid noise stop-outs
        stop_struct = cur.low - self._stop_buf * atr_dec
        stop_floor = entry - self._min_risk * atr_dec
        stop = min(stop_struct, stop_floor)
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None

        # Near target: the pre-de-risking level (prior close)
        target = prev.close
        reward = target - entry
        if reward <= 0:
            return None
        rr = reward / risk
        if rr < self._min_rr:
            return None

        # --- signal strength ---
        # 1) How pinned to the low the close is (0-30)
        cp = float((self._max_close_pos - close_pos) / self._max_close_pos)
        close_score = int(max(0.0, min(1.0, cp)) * 30)
        # 2) Share of the drop that occurred intraday (0-25)
        intraday_frac = float((cur.open - cur.close) / drop_amt) if drop_amt > 0 else 0.0
        intraday_score = int(max(0.0, min(1.0, intraday_frac)) * 25)
        # 3) Volume elevation vs 20-day average (0-20)
        avg_vol = sum(float(b.volume) for b in bars[-21:-1]) / 20.0
        vol_ratio = float(cur.volume) / max(avg_vol, 1.0)
        vol_score = int(max(0.0, min(1.0, vol_ratio - 1.0)) * 20)
        # 4) Trend context: rising 100-SMA (0-10)
        sma_prev = sma(closes[:-20], self._sma_len)
        trend_score = 10 if (sma_prev is not None and sma_now > sma_prev) else 0
        # 5) R:R excess (0-15)
        rr_f = float(rr)
        rr_score = int(max(0.0, min(1.0, (rr_f - 1.6) / 1.4)) * 15)
        strength = max(0, min(100, close_score + intraday_score + vol_score + trend_score + rr_score))

        day_label = "Friday" if self._weekday == 4 else "CONTROL weekday " + str(self._weekday)
        thesis = (
            day_label + ": sold off " + str((drop * 100).quantize(Decimal("0.1"))) +
            "% in-session and closed in the bottom " +
            str(int(float(close_pos) * 100)) + "% of the range above the 100-SMA. "
            "Weekend de-risking premium is expected to be repaid by Monday-Tuesday; "
            "target is the pre-selloff close and the stop sits just below Friday's low, "
            "so the trade should resolve within 1-3 bars."
        )

        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,
        )

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.

Have an idea of your own?

Describe it in plain words and get the same honest test in about a minute.

Run the Gauntlet
Friday weak close above 100-day average, buy for the weekend: Loses money · EdgeProven