Skip to content

Stochastic Overview

The Stochastic Oscillator measures where the current close sits relative to the high-low range over n periods, on a 0-100 scale. Close near the high = high stochastic (overbought), close near the low = low stochastic (oversold).

The key insight behind stochastic is that in uptrends, prices tend to close near their highs, and in downtrends, near their lows. When this pattern breaks (closing near lows in an uptrend), momentum may be shifting.


  1. Calculate Stochastic value from the input price/volume data
  2. Apply smoothing if applicable
  3. Compare to threshold or signal line for signal generation
  4. Interpret: Signals indicate momentum direction or extremes

Key Characteristics:

  • Momentum Indicator = Measures momentum direction and strength
  • Signal Line Available = Yes
  • Bounded = Yes (0 – 100)

Stochastic Behavior:

  • Overbought — potential reversal or short entry
  • Oversold — potential reversal or long entry
  • Signal line crossovers provide timing signals

These are the signal names you select when configuring Stochastic in the algorithm builder or via the MCP agent:

SignalTriggers WhenTypical Use
stoch_overboughtStochastic value rises above threshold (e.g., 80)Overbought — potential reversal or short entry
stoch_oversoldStochastic value falls below threshold (e.g., 20)Oversold — potential reversal or long entry
stoch_above_signalLineStochastic crosses above its signal lineBullish momentum crossover
stoch_below_signalLineStochastic crosses below its signal lineBearish momentum crossunder

Display: Separate pane

Category: Momentum

Threshold range: 0 – 100


What Stochastic Oscillator Does Well:

  • Clear Overbought/Oversold Signals
  • Combines well with trend filters
  • Signal line crossovers signals for entry timing