PureBytes Links
Trading Reference Links
|
Tz,All , Dim, Roy ...
in the code of the gann hilo below
/*Gann HiLo20*/
pds=20;
HLd = IIf (CLOSE>Ref(Ma(H,20),-1),
1,
IIf (CLOSE<Ref(Ma(L,20),-1),
-1,
0));
HLv =ValueWhen(HLd!=0,HLd);
HiLo = IIf (HLv=-1,
Ma(H,20),
Ma(L,20));
the value of Hlv is always -1
iIf i remove
HiLo = IIf (HLv=-1,
Ma(H,20),
Ma(L,20));
the value is -1 or +1
I am lost
stephane
|