VAR1:=150;
VAR2:=3;
VAR3:=REF(HHV(HIGH,VAR1),VAR2);
VAR4:=REF(LLV(LOW,VAR1),VAR2);
VAR5:=VAR3-(VAR3-VAR4)*0.618;
VAR6:=REFDATE(VAR5,DATE);
VAR7:=BArslASTCOUNT(CLOSE<VAR6);
VAR8:=crOSS(CLOSE,VAR6);
VAR9:=VAR7>300;
VAR10:=REF(VAR9,1);
VAR11:=VAR10 AND VAR8;
{DRAWICON(VAR11,150,34);}
xg:VAR11;