ZT:=C>=ZTPRICE(REF(C,1),0.1) AND C=H;
gspt1:=COUNT(ZT,8)=4;
gspt2:=BARSLAST(gspt1);
gspt3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
gspt4:=SMA(gspt3,3,1);
gspt5:=SMA(gspt4,3,1);
gspt6:=3*gspt4-2*gspt5;
gspt7:=COUNT(CROSS(gspt4,gspt5),gspt2)=0;
gspt8:=COUNT(C/REF(C,1)>1.05,gspt2)=0;
gspt9:=CROSS(gspt6,0);
gspt10:=C>O AND C>MAX(REF(C,1),REF(O,1));
gspt11:=BARSCOUNT(C)>=20;
XG:gspt7 AND gspt8 AND gspt9 AND gspt10 AND gspt11;