Variable Index Dynamic Average (VIDYA)

Here’s a variable moving average, the VIDYA, as described in The New Technical Trader by Tushar Chande and Stanley Kroll.

Variable Index Dynamic Moving Average

Variable Index Dynamic Moving Average

# VIDYA
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 15 MAR 2009

input sigmaperiod = 10;
input length = 20;

def sigmaConstant = 2/(sigmaperiod+1);
def absCMO = absValue(ChandeMomentumOscillator(length))/100;
rec cV = compoundValue(1, (sigmaConstant*absCMO*close)+(1-(sigmaConstant*absCMO))*cV[1],close);

plot VIDYA =cV;
This entry was posted in Indicator and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>