Skip to content
The Casebook · An idea an AI invented

Strong close on heavy volume, above 50-day average

Entry at latest close if close is within the top 10% of the day's range, volume is at least 1.3x the 20-day average, the daily return is positive, and close is above the 50-day SMA. Stop 1.2 ATR below. Target 1.8 ATR above.
Why the AI thought it might work

Closes in the top 10% of the daily range on above-average volume reflect late-day institutional buying, since index and VWAP-benchmarked funds buy near the close to complete orders. Unfilled residual orders carry into the next session, producing small but persistent continuation in names with intact trends.

VerdictTested Nov 22, 2026

Loses money

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

  • −0.251R a trade after costs on the laggard stocks.
Trades on the laggards
958

42 large US stocks, 15 years

Per trade, after costs
−0.251R

Before costs −0.093R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the 22 laggard stocks the 958 trades averaged −0.251R after costs, and still −0.09256509505891931R before them. Bull markets were worst at −0.275R (t −4.12), and the idea beat none of the random-date draws there (0.0%) or in flat markets. The 20 winners also lost, at −0.122R.

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
Bull728−0.275R−4.12−3.59 · 524d−0.126R · beats 0%−0.149R
Flat175−0.189R−1.69−0.89 · 118d−0.028R · beats 0%−0.036R
Bear55−0.132R−0.72−0.69 · 42d−0.084R · beats 35%+0.036R
All958−0.251R−0.105R−0.122R

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.7 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 StrongCloseNextDayContinuation:
    name = "strong_close_next_day_continuation"
    description = "Top-10% close on 1.3x volume, up day, above 50-SMA; short-horizon continuation long with bar-midpoint stop"

    def __init__(self, close_pct: float = 0.90, vol_mult: float = 1.3, sma_len: int = 50,
                 atr_len: int = 14, stop_buffer_atr: float = 0.15, min_risk_atr: float = 0.5,
                 max_risk_atr: float = 1.2, rr_mult: float = 1.6) -> None:
        self._close_pct = close_pct
        self._vol_mult = vol_mult
        self._sma_len = sma_len
        self._atr_len = atr_len
        self._buf = stop_buffer_atr
        self._min_risk = min_risk_atr
        self._max_risk = max_risk_atr
        self._rr = rr_mult

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < max(self._sma_len + 10, 60):
            return None
        cur = bars[-1]
        prev = bars[-2]
        rng = cur.high - cur.low
        if rng <= 0 or cur.close <= 0:
            return None
        close_pos = float((cur.close - cur.low) / rng)
        if close_pos < self._close_pct:
            return None
        if cur.close <= prev.close:
            return None
        vols = [float(b.volume) for b in bars[-21:-1]]
        avg_vol = sum(vols) / len(vols)
        if avg_vol <= 0:
            return None
        vol_ratio = float(cur.volume) / avg_vol
        if vol_ratio < self._vol_mult:
            return None
        closes = [float(b.close) for b in bars]
        sma_now = sma(closes, self._sma_len)
        if sma_now is None or float(cur.close) <= float(sma_now):
            return None
        sma_prev = sma(closes[:-5], self._sma_len)
        atr_val = atr(bars, self._atr_len)
        if atr_val is None or float(atr_val) <= 0:
            return None
        a = float(atr_val)
        a_dec = Decimal(str(a))

        entry = cur.close
        mid = cur.low + rng / 2
        stop = mid - Decimal(str(self._buf)) * a_dec
        risk = entry - stop
        min_risk = Decimal(str(self._min_risk)) * a_dec
        max_risk = Decimal(str(self._max_risk)) * a_dec
        if risk < min_risk:
            stop = entry - min_risk
        elif risk > max_risk:
            return None
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None
        target = entry + Decimal(str(self._rr)) * risk
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None

        vol_score = min(35.0, max(0.0, (vol_ratio - self._vol_mult) / 1.2 * 35.0))
        close_score = min(25.0, max(0.0, (close_pos - self._close_pct) / (1.0 - self._close_pct + 1e-9) * 25.0))
        trend_score = 0.0
        if sma_prev is not None and float(sma_now) > float(sma_prev):
            trend_score += 12.0
        ext = (float(cur.close) - float(sma_now)) / a
        if ext <= 3.0:
            trend_score += 13.0
        elif ext <= 5.0:
            trend_score += 6.0
        ret_atr = float(cur.close - prev.close) / a
        ret_score = min(15.0, max(0.0, ret_atr * 10.0))
        strength = int(max(0, min(100, round(vol_score + close_score + trend_score + ret_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"Closed at {close_pos:.0%} of range on {vol_ratio:.1f}x volume, up day, above {self._sma_len}-SMA: "
                    "late-session institutional buying likely leaves residual orders for the next session. "
                    "Stop below the bar midpoint and target ~1.6R are sized to resolve within a few sessions."),
        )

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
Strong close on heavy volume, above 50-day average: Loses money · EdgeProven