Systemicbeta

Know Sure Thing

systemic:core-kstIndicators

Inputs

NameTypeDescription
Long Rate Of ChangeWhole numberThe number of bars to look back for the **longest-term** Rate of Change.
Short Rate Of ChangeWhole numberThe number of bars to look back for the **shortest-term** Rate of Change.
Medium Short Rate Of ChangeWhole numberThe number of bars to look back for the **medium short-term** Rate of Change.
Medium Long Rate Of ChangeWhole numberThe number of bars to look back for the **medium long-term** Rate of Change.
Short WindowWhole numberThe number of bars in the Simple Moving Average that **smooths** the Short Rate of Change (ROC₁).
Medium Short WindowWhole numberThe number of bars in the Simple Moving Average that **smooths** the Medium Short Rate of Change (ROC₂).
Medium Long WindowWhole numberThe number of bars in the Simple Moving Average that **smooths** the Medium Long Rate of Change (ROC₃).
Long WindowWhole numberThe number of bars in the Simple Moving Average that **smooths** the Long Rate of Change (ROC₄).
Signal PeriodWhole numberThe number of bars used to calculate the **Signal Line** (a Simple Moving Average of the KST).
Price DataNumber seriesThe price series used to calculate momentum over four lookback lengths.

Outputs

NameTypeDescription
KSTNumber seriesThe main output: the weighted sum of four smoothed Rate of Change values.
Signal LineNumber seriesA smoothed version of the KST: its Simple Moving Average over the Signal Period.
DifferenceNumber seriesThe KST value minus its Signal Line.

Cost

18
credits per run
1,000
bars

0.213 + 0.0174·n credits for n bars, rounded up. The marks are each plan's limit of bars.

Overview

The Know Sure Thing (KST) is a momentum oscillator developed by Martin Pring and first published in 1992 in Stocks & Commodities magazine. Originally called the "Summed Rate of Change," the KST was designed to solve a fundamental problem in technical analysis: how to capture momentum across multiple time horizons in a single, actionable indicator.

Simple momentum indicators look at one lookback window. The KST combines four Rate of Change (ROC) calculations, from short-term to long-term cycles. It gives more weight to longer-term momentum. The result is a smoothed view of momentum that is less sensitive to noise but still reacts to real trend changes.

Key Insight: The KST oscillates above and below zero. Positive values indicate bullish momentum; negative values indicate bearish momentum. The magnitude reflects the strength of that momentum.


The Formula

The KST calculation proceeds in three stages:

Stage 1: Calculate Four Rate of Change Values

The Rate of Change measures the percentage change in price over a given number of bars:

ROCn=Pcurrent−Pn bars agoPn bars ago×100\text{ROC}_n = \frac{P_{\text{current}} - P_{n \text{ bars ago}}}{P_{n \text{ bars ago}}} \times 100

Stage 2: Smooth Each ROC with a Simple Moving Average

Each ROC is smoothed using a Simple Moving Average (SMA) to reduce noise:

RCMAi=SMA(ROCi,windowi)\text{RCMA}_i = \text{SMA}(\text{ROC}_i, \text{window}_i)

Stage 3: Weight and Sum the Smoothed Values

The four smoothed ROC values are combined with fixed weights:

KST=(RCMA1×1)+(RCMA2×2)+(RCMA3×3)+(RCMA4×4)\boxed{\text{KST} = (\text{RCMA}_1 \times 1) + (\text{RCMA}_2 \times 2) + (\text{RCMA}_3 \times 3) + (\text{RCMA}_4 \times 4)}

The Signal Line is an SMA of the KST over the Signal Period (classically 9 bars):

Signal Line=SMA(KST,Signal Period)\text{Signal Line} = \text{SMA}(\text{KST}, \text{Signal Period})

The Difference output is the KST minus its Signal Line:

Difference=KST−Signal Line\text{Difference} = \text{KST} - \text{Signal Line}

Multi-Timeframe Architecture

The KST measures momentum in layers. This diagram shows how the price data flows through the calculation:

flowchart TB
    subgraph INPUT["📊 Price Data"]
        P[Close Prices]
    end
    
    subgraph ROC["⚡ Rate of Change Calculations"]
        direction LR
        ROC1["ROC₁<br/>Short Period"]
        ROC2["ROC₂<br/>Mid-Short Period"]
        ROC3["ROC₃<br/>Mid-Long Period"]
        ROC4["ROC₄<br/>Long Period"]
    end
    
    subgraph SMA["📉 SMA Smoothing"]
        direction LR
        SMA1["SMA₁"]
        SMA2["SMA₂"]
        SMA3["SMA₃"]
        SMA4["SMA₄"]
    end
    
    subgraph WEIGHT["⚖️ Weighting"]
        direction LR
        W1["×1"]
        W2["×2"]
        W3["×3"]
        W4["×4"]
    end
    
    subgraph OUTPUT["📈 Outputs"]
        KST["KST Value"]
        SIG["Signal Line<br/>SMA of KST"]
        DIFF["Difference<br/>KST − Signal"]
    end
    
    P --> ROC1 & ROC2 & ROC3 & ROC4
    ROC1 --> SMA1 --> W1
    ROC2 --> SMA2 --> W2
    ROC3 --> SMA3 --> W3
    ROC4 --> SMA4 --> W4
    W1 & W2 & W3 & W4 --> KST
    KST --> SIG --> DIFF
    KST --> DIFF

Why Multiple Timeframes?

Financial markets move in cycles of different lengths:

TimeframeTypical CycleKST ComponentWeight
Short-termDays to weeksROC₁ (10 bars)1 (10%)
Mid-shortWeeks to monthsROC₂ (15 bars)2 (20%)
Mid-longMonthsROC₃ (20 bars)3 (30%)
Long-termMonths to quartersROC₄ (30 bars)4 (40%)

The weights (1, 2, 3, 4) give longer-term momentum the greatest influence on the KST value. Longer-term momentum tends to be more reliable for identifying major trends.


Classic Parameters

The module has no built-in defaults: you set every value. The classic KST settings, as specified by Martin Pring, use the notation:

KST(10, 15, 20, 30, 10, 10, 10, 15, 9)

ParameterDescriptionClassic value
Short Rate Of ChangeShort-term ROC lookback10
Medium Short Rate Of ChangeMid-short-term ROC lookback15
Medium Long Rate Of ChangeMid-long-term ROC lookback20
Long Rate Of ChangeLong-term ROC lookback30
Short WindowSMA window for ROC₁10
Medium Short WindowSMA window for ROC₂10
Medium Long WindowSMA window for ROC₃10
Long WindowSMA window for ROC₄15
Signal PeriodSMA window for the Signal Line9

Timeframe-Specific Settings

Martin Pring recommends different settings for different horizons:

Analysis TypeDataSettings
Short-termDaily(10, 15, 20, 30, 10, 10, 10, 15, 9)
Medium-termWeekly(10, 13, 15, 20, 10, 13, 15, 20, 9)
Long-termMonthly(9, 12, 18, 24, 6, 6, 6, 9, 9)

Interpreting KST Signals

1. Centerline Crossovers

The zero line acts as a momentum boundary:

ConditionInterpretation
KST > 0Bullish momentum dominates
KST < 0Bearish momentum dominates
KST crosses above 0Potential bullish trend beginning
KST crosses below 0Potential bearish trend beginning

2. Signal Line Crossovers

The most commonly used signals:

flowchart LR
    subgraph BULL["🟢 Bullish Signal"]
        B1["KST crosses<br/>ABOVE Signal Line"]
        B2["Consider buying<br/>or holding long"]
    end
    
    subgraph BEAR["🔴 Bearish Signal"]
        C1["KST crosses<br/>BELOW Signal Line"]
        C2["Consider selling<br/>or holding short"]
    end
    
    B1 --> B2
    C1 --> C2

Stronger signals occur when:

  • Bullish crossover happens below zero (momentum reversing from bearish to bullish)
  • Bearish crossover happens above zero (momentum reversing from bullish to bearish)

3. Divergences

Divergences between price and KST can signal potential reversals:

TypePrice ActionKST ActionImplication
Bullish DivergenceLower lowsHigher lowsDowntrend may be weakening
Bearish DivergenceHigher highsLower highsUptrend may be weakening

Caution: Confirm divergences with other signals. KST divergences, like those in MACD or RSI, can last a long time before price reverses, or may not lead to a reversal at all.


Practical Applications

Trend Confirmation Strategy

The KST is good at confirming whether momentum supports a price trend:

  1. Identify the trend using price action or moving averages
  2. Confirm with KST: Ensure KST is positive (uptrend) or negative (downtrend)
  3. Use signal line crossovers to time entries in the direction of the trend
  4. Avoid counter-trend trades when KST strongly supports the opposite direction

Multi-Asset Momentum Comparison

The KST is built from percentage changes, so it can be used to compare momentum across assets. An asset with a higher KST value may have stronger bullish momentum than one with a lower value. This can help with asset selection.

Cycle Analysis

The KST combines several horizons, which makes it useful for studying market cycles. Looking at which ROC components contribute most to the KST value shows which cycle lengths dominate:

  • If short-term ROC is high but long-term is low: Short-term rally within a longer downtrend
  • If long-term ROC is high: Established trend with strong foundational momentum

Edge Cases and Considerations

During strong, persistent trends, the KST may:

  • Remain positive (or negative) for extended periods without crossing zero
  • Generate signal line crossovers that suggest momentum is slowing, not reversing

A signal line crossover in a strong trend often means a pause or consolidation, not a true reversal. In these conditions, trend-following logic works better than counter-trend trades.

Data Requirements

The KST needs enough history for all four ROC values and their SMAs. The first KST value appears on bar:

First KST bar=max⁡i(ROCi+windowi)\text{First KST bar} = \max_i(\text{ROC}_i + \text{window}_i)

With the classic settings: 30+15=4530 + 15 = 45. Bars 1 to 44 are empty and the first KST value is on bar 45. The Signal Line needs Signal Period − 1 more bars (bar 53). The run fails if the price series has fewer bars than the largest window setting.

Not Suitable for Overbought/Oversold

Unlike bounded oscillators (RSI, Stochastics), the KST has no fixed upper or lower limit. This makes it unsuitable for identifying overbought or oversold conditions. A high KST value only shows strong momentum. It does not predict a reversal.


Missing Data

Missing bars in price_data (weekends, holidays, missing data) are empty on every output. They are never filled with an earlier or a later value:

ScenarioOutput
Closed-market gapEmpty on that bar. Every ROC and SMA stage uses only the bars that have data, so Friday and Monday count as neighbours (an "N-bar" window means N bars with data, not N calendar days)
Warm-up (not enough bars with data yet for a ROC/SMA stage, or fewer than signal_period KST values for the Signal Line)Empty — never an average over a partial window
All bars missingEvery bar of all 3 outputs is empty; the run does not fail

Data Alignment in Systemic

KST has one series input, price_data, so there is nothing to align inside the module. The output has one value per bar of that series.

Example: With daily Bitcoin prices, a Long Rate Of Change of 30 looks back 30 daily bars. With hourly prices, the same setting looks back 30 hours.

The KST parameters (rate_of_change_*, window_*, signal_period) are constants: one fixed value for the whole run.


Indicator Profile

This chart compares how useful KST is for stocks and for cryptocurrencies:

quadrantChart
    title KST Indicator Profile
    x-axis Low Popularity --> High Popularity
    y-axis Low Reliability --> High Reliability
    quadrant-1 High potential  
    quadrant-2 Established leaders
    quadrant-3 Niche tools
    quadrant-4 Popular but risky
    KST - Stocks: [0.45, 0.70]
    KST - Crypto: [0.35, 0.65]

Dimension Ratings

DimensionStocksCryptoNotes
Popularity4.5/103.5/10Well-known among technical analysts but overshadowed by MACD and RSI. Less adoption in crypto communities.
Reliability7.0/106.5/10Multi-timeframe synthesis reduces false signals. Slightly less reliable in crypto's 24/7 volatile markets.
Complexity6.0/106.0/10Requires understanding of ROC, SMA, and weighted sums. More parameters than simpler oscillators.
Versatility7.0/106.5/10Applicable across timeframes and asset classes. The classic settings were designed for stocks; crypto may need adjustment.
Recent Interest4.0/104.5/10Classic indicator with steady niche following. Slight crypto interest due to cyclical market behavior.

Further Reading

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5