Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 4988
- Rating:
- Published:
- 2018.10.22 19:51
- Updated:
- 2019.01.29 15:37
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Theory:
The Standard Deviation Ratio (SDR) was first presented as a technical indicator in the March 1992 edition of Technical Analysis of Stocks & Commodities magazine ‘Adapting Moving Averages To Market Volatility‘. The author Tushar S. Chande, Ph.D. used it as the Volatility Index in the original version of his Volatility Index Dynamic Average (VIDYA) or Variable Moving Average (VMA).Calculating it is as simple as taking the ratio of a Standard Deviation (SD) over one period to that of a longer period where both have the same starting point. One quirk of the SDR is that because the short term SD can become greater than the longer term SD, the ratio has no upper limit but does tend to remain below 1 most of the time (see the example chart below). The higher the ratio, the more spread the recent data is from the mean in relation to the past which should indicate a stronger trend.
Usage:
The standard deviation ratio (SDR) on its own can be used in a similar mode as the regular standard deviation - as a measure of current market volatility (ie: it is not a directional indicator and it can not be used for trend direction determination - for that you need some other indicator combined with this one)
![Step VHF adaptive VMA](https://c.mql5.com/i/code/indicator.png)
Step VHF adaptive VMA
![Averages composite trend](https://c.mql5.com/i/code/indicator.png)
Trend composed by a series of averages
![Standard deviation ratio adaptive EMA](https://c.mql5.com/i/code/indicator.png)
Standard deviation ratio adaptive EMA
![Tunnel Method](https://c.mql5.com/i/code/expert.png)
Trading based on three iMAs (Moving Average, MA)