Basics:
Variable Index Dynamic Average (VIDYA) technical indicator was developed by Tushar Chande.Â
It is an original method of calculating the Exponential Moving Average (EMA) with the dynamically changing period of averaging. Period of averaging depends on the market volatility; as the measure of volatility Chande Momentum Oscillator (CMO) is used.Â
This version:
There are Vidya indicators that are already doing the calculation the way how Tushar Chande describes it. The issue is actually in the way how CMO is calculated. The way how CMO is usually calculated makes it quite inefficient (try it for longer periods). This version fixes that and, as far as speed of execution is concerned, there is practically no difference if you use short or long periods so it can be used in regular trading and in testing without a danger of having too long calculations.
Usage:
You can use the color change for signals.