Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 4510
- Rating:
- Published:
- 2018.10.25 17:29
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Directional Volatility indicator. The indicator displays two volatility lines - bullish and bearish ones.
It has two configurable parameters:
- Period - calculation period
- Deviation - deviation
Calculation:
Short = ShortMA + Deviation * ShortDev Long = LongMA + Deviation * LongDev
where:
ShortMA - EMA(ShortS,Period)
ShortDev - StdDev(ShortMA,Period)
ShortS = PrevClose - Low
LongMA - EMA(LongS,Period)
LongDev - StdDev(LongMA,Period)
LongS = High - PrevClose
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22424
![DoubleToText](https://c.mql5.com/i/code/library.png)
Converts a number to a text.
![CCI_Histogram_Vol_HTF](https://c.mql5.com/i/code/indicator.png)
CCI_Histogram_Vol indicator with the timeframe selection option available in input parameters