IV Rank

 
Does MQ5 have a function for IV Rank or IV for a past period?  I see you can get SYMBOL_PRICE_VOLATILITY from SymbolInfoDouble, but that seems to be only for the current period.
 
Do you have the formulas to estimate the IV Rank?