STRASMORE/EXPLORE 2,595 QUERIES

pattern_hit_rates

Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-09-25, from bullish-candlestick-patterns.

as of ranking 3×4read in context →
pattern_hit_rates — 3 rows by 4 columns, computed from US exchange, SIP and OPRA data.
patternsignal_countnext_day_up_pctany_day_up_pct
Hammer210054.552.8
Bullish engulfing90748.352.8
Piercing line38049.752.8
Rows × columns
3 × 4
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for pattern_hit_rates, derived from the stored result.
ColumnTypeRangeNotes
pattern text 3 distinct values (Bullish engulfing, Hammer, Piercing line)
signal_count number 380 to 2,100 count
next_day_up_pct number 48.3 to 54.5 percent
any_day_up_pct number every row is 52.8 percent

Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.

Run it yourself

This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.

WITH marked AS
(
    SELECT
        multiIf(
            least(o, c) - l >= 2 * abs(c - o) AND h - greatest(o, c) <= 0.25 * (h - l),
                'Hammer',
            prev_c < prev_o AND c > o AND c >= prev_o AND o <= prev_c,
                'Bullish engulfing',
            prev_c < prev_o AND o < prev_c AND c < prev_o
                AND c > prev_c + (prev_o - prev_c) / 2,
                'Piercing line',
            'Ordinary day')  AS pattern,
        if(next_c > c, 1, 0) AS next_up
    FROM
    (
        SELECT
            toFloat64(open)               AS o,
            toFloat64(high)               AS h,
            toFloat64(low)                AS l,
            toFloat64(close)              AS c,
            lagInFrame(toFloat64(open))   OVER back AS prev_o,
            lagInFrame(toFloat64(close))  OVER back AS prev_c,
            leadInFrame(toFloat64(close)) OVER fwd  AS next_c
        FROM global_markets.stocks_daily_aggs
        WHERE ticker IN ('AAPL','MSFT','NVDA','JPM','JNJ','KO','PG','WMT','XOM','HD')
          AND date >= '2016-01-01'
          AND date <= '2025-12-31'
        WINDOW
            back AS (PARTITION BY ticker ORDER BY date
                     ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW),
            fwd  AS (PARTITION BY ticker ORDER BY date
                     ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
    )
    WHERE h > l AND prev_c > 0 AND next_c > 0
)
SELECT
    m.pattern                      AS pattern,
    count()                        AS signal_count,
    round(100 * avg(m.next_up), 1) AS next_day_up_pct,
    any(b.base_up_pct)             AS any_day_up_pct
FROM marked AS m
CROSS JOIN
(
    SELECT round(100 * avg(next_up), 1) AS base_up_pct
    FROM marked
) AS b
WHERE m.pattern != 'Ordinary day'
GROUP BY m.pattern
ORDER BY multiIf(m.pattern = 'Hammer', 1, m.pattern = 'Bullish engulfing', 2, 3)
⌘/Ctrl + Enter

Use dis data for your AI assistant

E go open ready to query, with dis page data. Free, no account.