Page 1 of 1

Volatility Quality

Posted: Sun Nov 02, 2008 12:23 pm
by metotron
Hi all!
I have found very interesting indicator -Volatility Quality. This indicator was made for Metatrader but main idea was taken from Tradestation.

Tradestation code:

Variables:
VQI(0),
SumVQI(0),
aver(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,"VQ");
Plot2(Average(SumVQI,5),"");
Plot3(Average(SumVQI,200),"");

But Metatrader's code shows points for enter and exit more sharp and can use different time frames same time

Can somebody recode MT version in TS
thanks!!!