STRASMORE/EXPLORE 3,127 QUERIES

wedge_frequency

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-10-06, from falling-wedge-pattern.

as of ranking 15×3read in context →
wedge_frequency — 15 rows by 3 columns, computed from US exchange, SIP and OPRA data.
tickerwedge_countwedge_rate_pct
CVX180.44
INTC180.44
HD160.39
NVDA160.39
MSFT140.34
DIS130.31
PFE130.31
GOOGL90.3
JNJ120.29
T120.29
GS110.27
XOM110.27
TSLA100.25
BAC100.24
CSCO90.22
Rows × columns
15 × 3
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 wedge_frequency, derived from the stored result.
ColumnTypeRangeNotes
ticker text 15 distinct values (BAC, CSCO, CVX…)
wedge_count number 9 to 18 count
wedge_rate_pct number 0.22 to 0.44 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
bars AS (
    SELECT
        ticker,
        date,
        toFloat64(high)  AS hi,
        toFloat64(low)   AS lo,
        toFloat64(close) AS px
    FROM global_markets.stocks_daily_aggs
    WHERE ticker IN ('AAPL','MSFT','NVDA','AMZN','GOOGL','META','TSLA','AVGO','JPM','BAC','WFC','GS','KO','PEP','PG','JNJ','PFE','MRK','XOM','CVX','WMT','HD','MCD','NKE','CSCO','INTC','IBM','T','VZ','DIS')
      AND date >= '2010-01-04'
      AND date <= '2026-09-30'
),
split_dates AS (
    SELECT
        ticker,
        groupArray(execution_date) AS split_days
    FROM
    (
        SELECT ticker, execution_date
        FROM global_markets.stocks_splits
        WHERE execution_date >= '2009-10-01'
        GROUP BY ticker, execution_date
    )
    GROUP BY ticker
),
stepped AS (
    SELECT
        ticker,
        date,
        px,
        hi - lo AS rng,
        if(hi < lagInFrame(hi, 1) OVER w AND lo < lagInFrame(lo, 1) OVER w, 1, 0) AS lower_both
    FROM bars
    WINDOW w AS (PARTITION BY ticker ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
),
feat AS (
    SELECT
        ticker,
        date,
        px,
        sum(lower_both) OVER (PARTITION BY ticker ORDER BY date ROWS BETWEEN 3 PRECEDING AND CURRENT ROW)  AS wedge_streak,
        avg(rng)        OVER (PARTITION BY ticker ORDER BY date ROWS BETWEEN 4 PRECEDING AND CURRENT ROW)  AS rng5,
        groupArray(rng) OVER (PARTITION BY ticker ORDER BY date ROWS BETWEEN 64 PRECEDING AND 5 PRECEDING) AS prior_rng,
        lagInFrame(px, 5)   OVER wf AS px_back5,
        leadInFrame(px, 5)  OVER wf AS px_fwd5,
        leadInFrame(px, 10) OVER wf AS px_fwd10,
        leadInFrame(px, 20) OVER wf AS px_fwd20
    FROM stepped
    WINDOW wf AS (PARTITION BY ticker ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
),
scored AS (
    SELECT
        f.ticker AS ticker,
        f.date   AS date,
        if(f.wedge_streak = 4 AND f.rng5 < arraySort(f.prior_rng)[15], 1, 0) AS is_wedge
    FROM feat AS f
    LEFT JOIN split_dates AS s ON s.ticker = f.ticker
    WHERE length(f.prior_rng) = 60
      AND f.px_back5 > 0
      AND f.px_fwd5  > 0
      AND f.px_fwd10 > 0
      AND f.px_fwd20 > 0
      AND NOT arrayExists(d -> (d >= f.date - 10) AND (d <= f.date + 32), s.split_days)
)
SELECT
    ticker,
    countIf(is_wedge = 1)                           AS wedge_count,
    round(100 * countIf(is_wedge = 1) / count(), 2) AS wedge_rate_pct
FROM scored
GROUP BY ticker
ORDER BY wedge_rate_pct DESC, ticker ASC
LIMIT 15
⌘/Ctrl + Enter

Use dis data for your AI assistant

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