PureBytes Links
Trading Reference Links
|
Dear Stephane,
Simply the equality comparison operator in AFL is == not =.
So you should write:
HiLo = IIf ( HLv == -1, Ma(H,20), Ma(L,20) );
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: <s.carrasset@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: 10 September, 2001 12:34
Subject: [amibroker] Gann
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;
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|