View Single Post
  #2 (permalink)  
Old 07-22-2006, 05:09 PM
Andrew2 Andrew2 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 8
Andrew2 is on a distinguished road
Can You translate it to mq4

Code:
Type : Indicator, Name : Volatility Quality Index 
Variables: 
VQI(0), 
SumVQI(0);

If TrueRange <> 0 and (High - Low) <> 0 Then
VQI = ((Close - Close[1]) / TrueRange + (Close - Open) / (High - Low)) * 0.5
Else
VQI=VQI[1];
VQI = AbsValue(VQI) * ((Close - Close[1] + (Close - Open)) * 0.5);
SumVQI = SumVQI + VQI;
Plot1(SumVQI,"");
Plot2(Average(SumVQI,9),"");
Plot3(Average(SumVQI,200),"");
I think, in easylanguage:

TrueRange = max([high]-[low], max([high]-val([close],1), val([close],1)-[low]));

Thank You

Raff
Attached Images
File Type: gif t-i-Volatility_Quality_Index.gif (16.8 KB, 13572 views)

Last edited by Andrew2; 07-29-2006 at 11:04 AM.
Reply With Quote