Hello
This is the VT indicator, hoped that the master help me changes MT4
Thanks for any reply in advance...
HLd:=If(C>Ref(Mov(H,20,Simple),-1),1,If(C<Ref(Mov(L,20,Simple),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,20,Simple),Mov(L,20,Simple));
function explanation :
ref (DATA ARRAY,PERIOD)
References a previous or subsequent element in a DATA ARRAY. A positive PERIOD references "n" periods in the future; a negative PERIOD references "n" periods ago.
mov(DATA ARRAY,PERIODS,METHOD)
Calculates a PERIODS moving average of DATA ARRAY using METHOD calculation method.
ValueWhen(Nth,EXPRESSION, DATA ARRAY )
Returns the value of the DATA ARRAY when the EXPRESSION was true on the Nth most recent occurrence. This includes all data loaded in the chart.
This is the VT indicator, hoped that the master help me changes MT4
Thanks for any reply in advance...
HLd:=If(C>Ref(Mov(H,20,Simple),-1),1,If(C<Ref(Mov(L,20,Simple),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,20,Simple),Mov(L,20,Simple));
function explanation :
ref (DATA ARRAY,PERIOD)
References a previous or subsequent element in a DATA ARRAY. A positive PERIOD references "n" periods in the future; a negative PERIOD references "n" periods ago.
mov(DATA ARRAY,PERIODS,METHOD)
Calculates a PERIODS moving average of DATA ARRAY using METHOD calculation method.
ValueWhen(Nth,EXPRESSION, DATA ARRAY )
Returns the value of the DATA ARRAY when the EXPRESSION was true on the Nth most recent occurrence. This includes all data loaded in the chart.