Skip to content
The Casebook · An idea an AI invented

Weak Friday close below 200-day average, short to Monday

Condition: latest bar is a Friday, close is in the bottom 20% of the week's high-low range, week return below -4%, and close below the 200-day SMA. Entry short at close. Stop 1.0x ATR(14) above close. Target 1.5x ATR(14) below close.
Why the AI thought it might work

In bear regimes, weekend news risk makes institutions cut gross exposure before Friday close; the premium for holding over the weekend is negative on average. Stocks closing Friday at a weak position in their weekly range keep being sold into Monday as risk managers finish de-risking, visible in own weekday-labelled bars.

VerdictTested Nov 22, 2026

Loses money

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

  • −0.087R a trade after costs on the laggard stocks.
Trades on the laggards
169

42 large US stocks, 15 years

Per trade, after costs
−0.087R

Before costs +0.001R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the laggard stocks, 169 trades averaged −0.087R after costs (0.001R before costs), and the winners averaged −0.008R. By market: bull −0.295R over 81 trades, flat −0.034R, bear +0.256R over 42 trades from 20 distinct days (t by day 0.45). The losing average over all trades is what sets the verdict.

How it was tested

The rule as written, coded once, run on every stock the same way.

Side
Short
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
Bull81−0.295R−1.89−1.55 · 68d−0.092R · beats 10%−0.283R
Flat46−0.034R−0.17−0.99 · 29d−0.078R · beats 55%−0.165R
Bear42+0.256R1.180.45 · 20d−0.239R · beats 100%+0.391R
All169−0.087R−0.125R−0.008R

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.6 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
import math

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


class FridayWeakCloseWeekendDeriskShort:
    name = "friday_weak_close_weekend_derisk_short"
    description = "Short a downtrending stock whose Friday close sits in the bottom 20% of a -4% to -15% week, betting weekend de-risking continues into Monday."

    def __init__(self, range_pct: float = 0.20, min_week_drop: float = -0.04, max_week_drop: float = -0.15, stop_atr: float = 1.0, target_atr: float = 1.6, min_rsi: float = 25.0, day_close_pos_max: float = 0.35, min_rel_volume: float = 1.0) -> None:
        self._range_pct = range_pct
        self._min_drop = min_week_drop
        self._max_drop = max_week_drop
        self._stop_atr = stop_atr
        self._target_atr = target_atr
        self._min_rsi = min_rsi
        self._day_pos_max = day_close_pos_max
        self._min_relvol = min_rel_volume

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < 220:
            return None
        cur = bars[-1]
        ts = cur.timestamp
        if ts.weekday() != 4:
            return None
        iso = ts.isocalendar()
        wk = (iso[0], iso[1])
        week = []
        idx = len(bars) - 1
        while idx >= 0:
            c = bars[idx].timestamp.isocalendar()
            if (c[0], c[1]) != wk:
                break
            week.append(bars[idx])
            idx -= 1
        if len(week) < 3 or idx < 0:
            return None
        prev_close = float(bars[idx].close)
        if prev_close <= 0:
            return None
        close = float(cur.close)
        wk_high = max(float(b.high) for b in week)
        wk_low = min(float(b.low) for b in week)
        wk_range = wk_high - wk_low
        if wk_range <= 0:
            return None
        wk_pos = (close - wk_low) / wk_range
        if wk_pos > self._range_pct:
            return None
        wk_ret = close / prev_close - 1.0
        if wk_ret >= self._min_drop or wk_ret < self._max_drop:
            return None

        closes = [float(b.close) for b in bars]
        sma200 = sma(closes, 200)
        sma50 = sma(closes, 50)
        ema20 = ema(closes, 20)
        if sma200 is None or sma50 is None or ema20 is None:
            return None
        sma200 = float(sma200); sma50 = float(sma50); ema20 = float(ema20)
        if not (close < sma200 and sma50 < sma200 and close < ema20):
            return None

        r = rsi(closes, 14)
        if r is None:
            return None
        r = float(r)
        if r < self._min_rsi:
            return None

        day_rng = float(cur.high) - float(cur.low)
        if day_rng <= 0:
            return None
        day_pos = (close - float(cur.low)) / day_rng
        if day_pos > self._day_pos_max:
            return None

        vols = [float(b.volume) for b in bars[-21:-1]]
        avg_vol = sum(vols) / len(vols) if vols else 0.0
        if avg_vol <= 0:
            return None
        relvol = float(cur.volume) / avg_vol
        if relvol < self._min_relvol:
            return None

        a = atr(bars, 14)
        if a is None:
            return None
        a = float(a)
        if a <= 0 or math.isnan(a):
            return None
        a_dec = Decimal(str(a))
        entry = cur.close
        stop = entry + Decimal(str(self._stop_atr)) * a_dec
        if stop > Decimal(str(wk_high)):
            stop = Decimal(str(wk_high))
        target = entry - Decimal(str(self._target_atr)) * a_dec
        if target <= 0:
            return None
        risk = stop - entry
        reward = entry - target
        if risk <= 0 or reward <= 0:
            return None
        rr = reward / risk
        if rr <= Decimal("1.5"):
            return None

        weak_score = max(0, min(30, int((1.0 - wk_pos / self._range_pct) * 15 + (1.0 - day_pos / self._day_pos_max) * 15)))
        vol_score = max(0, min(25, int((relvol - 1.0) * 25)))
        trend_gap = (sma200 - close) / sma200
        trend_score = max(0, min(25, int(trend_gap * 150)))
        drop = -wk_ret
        drop_score = max(0, min(20, int(20 - abs(drop - 0.07) * 250)))
        strength = max(0, min(100, weak_score + vol_score + trend_score + drop_score))

        return Candidate(
            ticker=ticker,
            side="sell",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=strength,
            thesis=(f"Friday close at {wk_pos:.0%} of weekly range after {wk_ret:.1%} week, below 200-SMA in a 50<200 downtrend, "
                    f"Friday closed at {day_pos:.0%} of day range on {relvol:.1f}x volume; unfinished weekend de-risking expected to extend into Monday. "
                    f"Tight ATR bracket targets resolution within days."),
            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.

Have an idea of your own?

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

Run the Gauntlet