# VIDYA

Also known as: variable index dynamic average.
A Trend concept (Moving-average lineage) in the LuxAlgo Library, with 1 indicator implementation.

## What is VIDYA?

VIDYA (Variable Index Dynamic Average) is Tushar Chande's adaptive moving average: an [EMA](https://www.luxalgo.com/library/concept/ema/) whose smoothing constant is rescaled every bar by how decisively price is moving. In the most widely used formulation the scaler is the absolute value of the Chande Momentum Oscillator (CMO), so strong one-sided momentum pushes the effective smoothing constant up and the average chases price, while balanced up-and-down movement pushes it toward zero and the average flattens. Chande's original version scaled by relative volatility, a ratio of recent to reference standard deviation, and both readings exist in the wild.

The effect is an average with a variable effective length. In a strong trend it behaves like a fast EMA; in congestion it goes nearly horizontal, which is exactly the property traders want from it: a line that stops following noise when there is nothing directional to follow. That behavior made it a common core for adaptive baselines and the trailing systems built on top of them. Adaptation reduces whipsaw in ranges; it does not eliminate it, and platforms that use different scalers will print different VIDYA values on the same chart.

Chande introduced VIDYA in a March 1992 Technical Analysis of Stocks & Commodities article, "Adapting Moving Averages to Market Volatility," and developed it further in The New Technical Trader (1994) with Stanley Kroll, where the momentum-scaled version took hold. It belongs to the era's wave of adaptive-filter research, alongside Perry Kaufman's KAMA and later John Ehlers' work, all attacking the same defect: a fixed-length average is tuned for one market condition and wrong everywhere else.

Within the moving-average family, VIDYA sits opposite the [SMA](https://www.luxalgo.com/library/concept/sma/), which weights every bar equally and reacts identically in trend and chop. Because its effective length floats, traders use VIDYA where a fixed average would need constant re-tuning: as [dynamic support and resistance](https://www.luxalgo.com/library/concept/dynamic-s-r-via-ma/) that hugs trends and detaches in ranges, or as the core of an [MA envelope](https://www.luxalgo.com/library/concept/ma-envelope/) whose bands inherit its stall-and-chase behavior.

## How to calculate VIDYA

The common CMO-based form takes a length N and a momentum lookback, frequently 9.

1. Compute the base smoothing constant exactly as an EMA would: alpha = 2 / (N + 1).
2. Compute the CMO over its lookback and take its absolute value divided by 100, giving a factor between 0 (movement fully balanced) and 1 (movement fully one-sided).
3. Multiply the two: the effective smoothing constant for this bar is alpha × factor.
4. Update recursively: VIDYA = effective alpha × price + (1 - effective alpha) × previous VIDYA. In the original variant, the CMO factor is replaced by a ratio of short-term to reference standard deviation.

## How traders use it

- As a self-tightening trend baseline: a clearly sloped VIDYA marks a directional phase and a flat one marks congestion, a read some traders use directly as a [trend regime](https://www.luxalgo.com/library/concept/trend-regime-label/) filter.
- For price-cross and [crossover](https://www.luxalgo.com/library/concept/moving-average-crossovers/) signals, where the flattening behavior is intended to produce fewer triggers inside ranges than a fixed-length EMA; fewer, not zero.
- As the engine of trailing systems: bands or offsets around VIDYA follow price while momentum persists and stop migrating when it dies, which is why several trailing-stop designs are built on it.
- For [breakout](https://www.luxalgo.com/library/concept/breakout/) preparation: a VIDYA gone flat marks compression, and some traders arm entries when price leaves the flat line decisively, treating the first strong close away as the start of a directional phase.
- With slope rules: an [MA slope filter](https://www.luxalgo.com/library/concept/ma-slope-filter/) turns the line into an explicit condition, taking signals only when VIDYA's slope exceeds a threshold in the trade's direction.

## VIDYA vs other moving averages

- **EMA** (https://www.luxalgo.com/library/concept/ema/): An EMA weights new data with the same fixed constant on every bar regardless of conditions. VIDYA is the same recursion with the constant re-derived each bar, so it speeds up and slows down while an EMA cannot.
- **Ehlers SuperSmoother** (https://www.luxalgo.com/library/concept/ehlers-supersmoother/): The SuperSmoother is a fixed digital filter built to remove high-frequency noise with minimal lag; its response never changes with conditions. VIDYA achieves smoothness situationally, moving fast only when momentum says the movement is real.
- **Supertrend** (https://www.luxalgo.com/library/concept/supertrend/): Supertrend is a stepped ATR trailing line that flips between discrete bullish and bearish states, built for signals rather than smoothing. VIDYA is a continuous baseline; systems such as the Optimized Trend Tracker combine the two ideas by trailing offsets around a variable average.
- **Adaptive-lookback MA** (https://www.luxalgo.com/library/concept/adaptive-lookback-ma/): An adaptive-lookback average changes how many bars it examines as conditions shift. VIDYA keeps its recursion and instead re-weights how much each new bar matters. Different mechanisms, similar intent.

## FAQ

### What makes VIDYA different from a normal EMA?

Only the smoothing constant, and that changes everything about its behavior. An EMA fixes the constant from the length setting; VIDYA multiplies that base constant by a bar-by-bar measure of directional strength, usually absolute CMO divided by 100. When momentum is strong VIDYA updates quickly, and when movement nets out to nothing it barely updates at all.

### Does VIDYA adapt to momentum or to volatility?

Both versions exist. Chande's original 1992 formulation scaled the smoothing constant by relative volatility, a ratio of current to reference standard deviation. The formulation most platforms implement today scales by the absolute Chande Momentum Oscillator instead. Check which one your tool uses, because the two can disagree noticeably on the same chart.

### Can VIDYA go completely flat?

Essentially, yes. When the momentum factor approaches zero the effective smoothing constant approaches zero, so the average stops absorbing new prices and prints nearly horizontal. That is deliberate: the line refuses to chase two-sided noise. It also means VIDYA can sit still while price drifts slowly, so a flat line is not proof that nothing is happening.

### What settings does VIDYA use?

Two numbers: an EMA-style length N for the base smoothing constant, and the CMO lookback, commonly 9. Platform defaults vary and some tools expose only a single length; longer settings suit slower regimes and higher timeframes.

### How is VIDYA different from KAMA and FRAMA?

KAMA scales its constant by Kaufman's efficiency ratio, net displacement over total path length, mapped between fast and slow bounds; VIDYA's common form scales by absolute CMO and has no fixed floor, so it can flatten more completely. FRAMA adapts using the fractal dimension of the price path, how space-filling it is, rather than momentum or volatility. All three chase the same goal with different diagnostics.

### Is VIDYA better than a standard EMA?

It trades one weakness for another. In ranges it whipsaws less than an EMA of similar length; after a flat spell it needs momentum to rebuild before it moves, so it can be late on sharp [reversals](https://www.luxalgo.com/library/concept/reversal/). Whether that trade-off pays depends on the strategy and market, which is a testing question rather than a settled fact.

## Implementations in the Library

- VIDYA (LuxAlgo): https://www.luxalgo.com/library/indicator/vidya/

## Related concepts

- SMA: https://www.luxalgo.com/library/concept/sma/
- EMA: https://www.luxalgo.com/library/concept/ema/
- Adaptive-lookback MA: https://www.luxalgo.com/library/concept/adaptive-lookback-ma/
- MA Envelope: https://www.luxalgo.com/library/concept/ma-envelope/
- SWMA: https://www.luxalgo.com/library/concept/swma/
- RMA: https://www.luxalgo.com/library/concept/rma/
- HMA: https://www.luxalgo.com/library/concept/hma/
- KAMA: https://www.luxalgo.com/library/concept/kama/
- JMA: https://www.luxalgo.com/library/concept/jma/
- ZLEMA: https://www.luxalgo.com/library/concept/zlema/

---

Source: https://www.luxalgo.com/library/concept/vidya/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/