[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gann



PureBytes Links

Trading Reference Links

Roy, Tz,

I turn mad, what is false in this gann hilo,it gives me always the ma
(H,20) .

Stephane


/*price candlestick*/

graph0 = close; 
graph0Style = 64;
graph0color=2;


/*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));
graph1=HiLo;
graph1color=5;