I found one in MT4 (you can use it as an example) -
----------------
Volatility.mq4 - indicator for MetaTrader 4
A simple indicator that calculates the volatility of a certain currency pair (or of another security available in the terminal). Volatility is calculated in points for High and Low prices (not for Open or Close ones).
- www.mql5.com
The other one -
----------------
Historical Volatility - High/Low - indicator for MetaTrader 5
Historical Volatility (HV) is a statistical measure of the dispersion of returns for a given security or market index over a given period of time. Generally, this measure is calculated by determining the average deviation from the average price of a financial instrument in the given time period. Using standard deviation is the most common, but not the only, way to calculate Historical Volatility.
- www.mql5.com
Thanks :)
you can also use simply ATR
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear sirs,
Do you know how to calculate the volatility of any instrument?