PureBytes Links
Trading Reference Links
|
Hi all,
I am just wondering whether someone can help me to solve this problem?this indicator originated from trade station EL. here is the original code
======================================================================
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),"");
======================================================================
Later, this indicator it was translated by Wabbit.Yet,the indicator is giving error message
Length1:=Input("Length 1",1,1000,9);
Length2:=Input("Length 1",1,1000,200);
VQI:=If(ATR(1)<>0 AND (H-L)<>0, ((C-Ref(C,-1)/ATR(1)) + ((C-O)/(H-L)))*0.5,PREV);
VQI:=Abs(VQI)*((C-Ref(C,-1)+(C-O))*0.5);
SumVQI:=Cum(VQI);
SumVQI; {Green}
Mov(SumVQI,Length1,S); {Red}
Mov(SumVQI,Length2,S); {Yellow}
======================================================================
Thank you
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|