VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VAR3:=SMA(MAX(CLOSE-VAR1,0),13,1)/SMA(ABS(CLOSE-VAR1),13,1)*100;
VAR4:=BARSCOUNT(CLOSE);
VAR5:=DATE;
VAR6:=VAR2<20 AND VAR3<25 AND VAR4>50;
VAR7:=1000501;
VAR8:=1001231;
{GPW: IF(VAR5<VAR8,VAR6,0);}
GPW: VAR6;