Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
7323
Rating:
(15)
Published:
2018.10.08 18:26
Updated:
2019.01.29 14:02
Vidya.mq5 (9.58 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.

VHF adaptive VMA VHF adaptive VMA

VHF adaptive VMA

VHF adaptive ADXm VHF adaptive ADXm

VHF (Vertical Horizontal Filter) adaptive ADXm

Stochastic volatility - on chart Stochastic volatility - on chart

Stochastic volatility - on chart

Step average Step average

Step average