STRASMORE/EXPLORE 2,749 QUERIES

base_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-28, from stochastic-oscillator-explained.

as of ranking 3×4read in context →
base_rates — 3 rows by 4 columns, computed from US exchange, SIP and OPRA data.
signal_groupmedian_fwd_5d_pctmedian_fwd_10d_pctmedian_fwd_20d_pct
%K ตัดลงต่ำกว่า 800.370.731.39
%K ตัดขึ้นเหนือ 200.520.951.55
ค่าฐาน: ทุกวันทำการ0.390.821.48
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 base_rates, derived from the stored result.
ColumnTypeRangeNotes
signal_group text 3 distinct values
median_fwd_5d_pct number 0.37 to 0.52 percent
median_fwd_10d_pct number 0.73 to 0.95 percent
median_fwd_20d_pct number 1.39 to 1.55 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,
            argMax(toFloat64(close), _ingest_time) AS close,
            argMax(toFloat64(high),  _ingest_time) AS high,
            argMax(toFloat64(low),   _ingest_time) AS low
        FROM global_markets.stocks_daily_aggs
        WHERE ticker IN ('AAPL','MSFT','NVDA','AMZN','GOOGL','META','JPM','JNJ','XOM','PG','KO','WMT','HD','UNH','CVX','PEP','MRK','CSCO','ORCL','MCD')
          AND date >= '2015-01-01'
          AND date <  '2026-09-01'
        GROUP BY ticker, date
    ),
    ranges AS (
        SELECT
            ticker, date, close,
            count()   OVER w14 AS n14,
            max(high) OVER w14 AS hh14,
            min(low)  OVER w14 AS ll14
        FROM bars
        WINDOW w14 AS (PARTITION BY ticker ORDER BY date ROWS BETWEEN 13 PRECEDING AND CURRENT ROW)
    ),
    fast AS (
        SELECT
            ticker, date, close,
            if(hh14 > ll14, 100 * (close - ll14) / (hh14 - ll14), 50) AS k_fast
        FROM ranges
        WHERE n14 = 14
    ),
    slow AS (
        SELECT
            ticker, date, close,
            avg(k_fast) OVER w3 AS k_slow,
            count()     OVER w3 AS n3
        FROM fast
        WINDOW w3 AS (PARTITION BY ticker ORDER BY date ROWS BETWEEN 2 PRECEDING AND CURRENT ROW)
    ),
    fwd AS (
        SELECT
            ticker, date, close, k_slow,
            lagInFrame(k_slow, 1)  OVER wl AS k_prev,
            leadInFrame(close, 5)  OVER wf AS c5,
            leadInFrame(close, 10) OVER wf AS c10,
            leadInFrame(close, 20) OVER wf AS c20
        FROM slow
        WHERE n3 = 3
        WINDOW
            wl AS (PARTITION BY ticker ORDER BY date ROWS BETWEEN 1 PRECEDING AND CURRENT ROW),
            wf AS (PARTITION BY ticker ORDER BY date ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
    ),
    tagged AS (
        SELECT
            100 * (c5  / close - 1)             AS fwd5_pct,
            100 * (c10 / close - 1)             AS fwd10_pct,
            100 * (c20 / close - 1)             AS fwd20_pct,
            cityHash64(ticker, toString(date))  AS h,
            arrayJoin(arrayConcat(
                if((k_prev >= 80) AND (k_slow < 80), ['%K ตัดลงต่ำกว่า 80'], emptyArrayString()),
                if((k_prev <= 20) AND (k_slow > 20), ['%K ตัดขึ้นเหนือ 20'], emptyArrayString()),
                ['ค่าฐาน: ทุกวันทำการ']
            ))                                  AS signal_group
        FROM fwd
        WHERE date >= '2016-01-01'
          AND c5 > 0 AND c10 > 0 AND c20 > 0
    )
SELECT
    signal_group,
    round(quantileDeterministic(0.5)(fwd5_pct,  h), 2) AS median_fwd_5d_pct,
    round(quantileDeterministic(0.5)(fwd10_pct, h), 2) AS median_fwd_10d_pct,
    round(quantileDeterministic(0.5)(fwd20_pct, h), 2) AS median_fwd_20d_pct
FROM tagged
GROUP BY signal_group
ORDER BY indexOf(['%K ตัดลงต่ำกว่า 80', '%K ตัดขึ้นเหนือ 20', 'ค่าฐาน: ทุกวันทำการ'], signal_group)
⌘/Ctrl + Enter

ใช้ข้อมูลนี้ในผู้ช่วย AI ของคุณ

เปิดพร้อมคิวรีได้ทันที พร้อมข้อมูลของหน้านี้ ฟรี ไม่ต้องมีบัญชี