# Stochastic Adaptive %D

Stochastic Adaptive %D is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

An oscillator that plots the gap between a pre-smoothed Stochastic %D and an adaptive %D baseline as a 50-centered line with a shaded fill to the midline. The baseline stiffens near the midline and speeds up as %D moves away from 50, fading whipsaws while catching genuine momentum shifts early. Built for traders who find the classic stochastic too noisy to trust.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Feb 18, 2026.
- Access: free.
- Concepts: [Adaptive Stochastic](https://www.luxalgo.com/library/concept/adaptive-stochastic/) (primary), [Stochastic Oscillator](https://www.luxalgo.com/library/concept/stochastic-oscillator/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn5ynn008evhsg8jfxtpp7
- Page: https://www.luxalgo.com/library/indicator/stochastic-adaptive-d/

The **Stochastic Adaptive %D** measures momentum as a spread: the distance between a deeply smoothed Stochastic %D and an [adaptive stochastic](https://www.luxalgo.com/library/concept/adaptive-stochastic/) baseline whose smoothing changes with conditions. Rather than pairing %K with a static signal line the way the classic [Stochastic Oscillator](https://www.luxalgo.com/library/concept/stochastic-oscillator/) does, it applies SMA pre-smoothing to high, low, and close before the stochastic formula ever runs, then plots the difference between the two %D lines as a 50-centered line with a shaded fill to the midline.

## How to Trade the Stochastic Adaptive %D?

- **Green fill expansion**: the dotted Standard %D is leading above the dashed Adaptive %D: bullish momentum building; strong expansion near 80 leans continuation rather than immediate reversal.
- **Red fill expansion**: the Standard %D is lagging below the baseline, a sign of strengthening bearish pressure.
- **Contraction after expansion**: momentum exhausting, an early cue that the current push is fading.
- **Behavior at the extremes**: the baseline turns more reactive the further %D moves from 50, so the oscillator answers quickly when momentum is stretched.

Because the adaptive line stays deliberately calm around the 50 midline, low-conviction chop produces less oscillator noise than a fixed crossover system, a balance that holds up from scalping through swing horizons.

## Stochastic Adaptive %D Settings

- **Stochastic Length**: lookback for the raw stochastic; shorter is more sensitive, longer is smoother.
- **%K Smoothing**: internal smoothing that produces the Standard %D line.
- **Price Pre-Smoothing**: SMA filtering applied to price before the stochastic computation.
- **Attenuation Factor**: how strongly the Adaptive %D resists movement: higher for a calmer baseline, lower for a more aggressive one.

## Frequently Asked Questions

### What does this add over a standard stochastic?

A fixed signal line whipsaws in ranges and lags in trends. Here the reference adapts (stable near the midline, fast near the extremes) and the inputs are cleaned before calculation, a different proposition from the fixed smoothing of the classic [Stochastic](https://www.luxalgo.com/library/indicator/stochastic/).

### Can I tune it for scalping or swing trading?

Yes. Lowering the Attenuation Factor and Stochastic Length increases responsiveness for lower timeframes, while raising the smoothing parameters suits broader momentum work on higher ones.

### Is the Stochastic Adaptive %D free?

It is. The indicator is available at no cost through the LuxAlgo Library, and Quant, our coding agent, can run and backtest it straight from this page. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Inertial Stochastic](https://www.luxalgo.com/library/indicator/inertial-stochastic/) (Stochastic Oscillator): markdown at https://www.luxalgo.com/library/indicator/inertial-stochastic.md
- [Multi-Length Stochastic Average](https://www.luxalgo.com/library/indicator/multi-length-stochastic-average/) (Stochastic Oscillator): markdown at https://www.luxalgo.com/library/indicator/multi-length-stochastic-average.md
- [Normalized Oscillators Spider Chart](https://www.luxalgo.com/library/indicator/normalized-oscillators-spider-chart/) (Stochastic Oscillator): markdown at https://www.luxalgo.com/library/indicator/normalized-oscillators-spider-chart.md
- [Stochastic](https://www.luxalgo.com/library/indicator/stochastic/) (Stochastic Oscillator): markdown at https://www.luxalgo.com/library/indicator/stochastic.md
- [Double Stochastic](https://www.luxalgo.com/library/indicator/double-stochastic/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/double-stochastic.md
- [Stochastic Pop](https://www.luxalgo.com/library/indicator/stochastic-pop/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/stochastic-pop.md
- [SMI Ergodic](https://www.luxalgo.com/library/indicator/smi-ergodic/) (Stochastic Momentum Index): markdown at https://www.luxalgo.com/library/indicator/smi-ergodic.md
- [DSS Bressert](https://www.luxalgo.com/library/indicator/dss-bressert/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/dss-bressert.md

---

Source: https://www.luxalgo.com/library/indicator/stochastic-adaptive-d/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
