All indicators

Double Stochastic

By LuxAlgoMay 11, 2026

Double Stochastic is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

Double Stochastic runs price through the stochastic calculation twice (ranking it within its range, smoothing, then ranking and smoothing again) for a 0-100 oscillator markedly calmer than a single-pass %K while still reaching its extremes with conviction. This build carries both published recipes for the Double Stochastic: Bressert's two-pass %K (the default), and Blau's variant, which double-smooths the stochastic numerator and denominator before taking their ratio.

How to Trade the Double Stochastic?

  • Trough at or below 20: a turn up out of the oversold zone is the swing-timing long read. In uptrends these visits gauge pullback depth.
  • Crest at or above 80: the mirrored turn down from overbought; both turns carry alerts and optional markers.
  • Level crossings: entries into and exits from the 80/20 zones fire their own alerts.
  • Midline side: the plot colors bullish above 50 and bearish below, a quick momentum-bias read.

The double pass filters so much noise that extreme visits are rare enough to carry weight; the trade-off is a few bars of delay at real turns.

Double Stochastic Settings

  • Variant (default Bressert (Two-Pass %K)): the two-pass recipe, or Blau's double-smoothed components.
  • Source (default close): series ranked within the first pass's high/low range.
  • First Stochastic Length (default 10): lookback of the first ranking pass.
  • First Smoothing Length (default 3): EMA after the first pass (Bressert) or on the raw components (Blau).
  • Second Stochastic Length (default 10): lookback of the second ranking pass (Bressert only).
  • Second Smoothing Length (default 3): EMA of the second smoothing stage.
  • Overbought Level (default 80) and Oversold Level (default 20): the extreme zones.
  • Extreme Turn Markers (default disabled): circles at oversold troughs and overbought crests; alerts cover both.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.