TREND, MOVING AVERAGES & STRUCTURE
VIDYA
An exponential average with an automatic gearbox: it speeds up when momentum is strong and coasts when the market is quiet.
spec id: vidyalength (default 14)
What does VIDYA measure?
An exponential average with an automatic gearbox: it speeds up when momentum is strong and coasts when the market is quiet.
How is VIDYA calculated?
Work out the Chande momentum reading over 14 candles — how one-sided the recent candles have been — and use its size to scale how quickly the average moves toward each new close.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use VIDYA in a bot?
In the builder, add an indicator of type vidya (parameters: length, default 14). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- VortexTwo lines that cross when a trend changes hands.
- Volume-weighted MAA moving average that lets heavy-volume candles speak louder.
- Weighted closeA single price for the candle that leans toward where it finished, since the close is usually the most meaningful point of the session.
- WMAA moving average that gives newer candles a bigger say in a straight line — heavier than a simple average, lighter than an exponential one.
Or browse all 158 indicators in the full library.