> "Tushar Chande asked: 'Why should I trust a moving average that treats a market crash the same as a lunch break?' VIDYA is the answer."
The Variable Index Dynamic Average (VIDYA) is an adaptive moving average that automatically adjusts its smoothing speed based on market volatility. When the market is trending (high volatility), VIDYA speeds up to capture the move. When the market is ranging (low volatility), it slows down to filter out the noise.
## Historical Context
Developed by Tushar Chande and introduced in *Technical Analysis of Stocks & Commodities* (March 1992). It was one of the first "intelligent" moving averages, using Chande's own Momentum Oscillator (CMO) as the volatility index.
## Architecture & Physics
VIDYA is essentially an EMA where the alpha ($\alpha$) is not constant.
First bar initializes state with price value only.
### Batch Mode (SIMD Analysis)
VIDYA is an IIR filter with CMO-driven adaptive alpha — not vectorizable across bars due to recursive state dependency. The CMO calculation uses O(1) incremental ring buffer sums.
| Optimization | Benefit |
| :--- | :--- |
| FMA instructions | Saves ~2 cycles per bar |
| Incremental CMO sums | O(1) vs O(period) per bar |
3.**Comparison**: Often compared to KAMA (Kaufman). KAMA uses Efficiency Ratio (ER); VIDYA uses CMO. They are conceptually similar but mathematically distinct.