gspt11:=REF(CLOSE,1)/REF(CLOSE,2)>1.095;
gspt21:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.9 AND (CLOSE-REF(CLOSE,3))/REF(CLOSE,3)*100< 31 AND (CLOSE-REF(CLOSE,4))/REF(CLOSE,4)*100< 40;
XLJ:=gspt11 AND gspt21 AND CLOSE< 16 AND REF(VOL/CAPITAL*100,1)< 25 AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,21) AND MA(CLOSE,5)>MA(CLOSE,34) AND VOL<=REF(VOL,1)*3.1 AND (CLOSE-REF(CLOSE,9))/REF(CLOSE,9)*100< 50 AND (CLOSE-REF(CLOSE,7))/REF(CLOSE,7)*100< 50 AND (CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100< 150 AND REF(VOL/CAPITAL*100,0)< 30 AND REF(VOL/CAPITAL*100,2)< 45 AND MA(CLOSE,3)>MA(CLOSE,5);
gspt1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
gspt2:=REF(C,10)=HHV(C,21);
gspt3:=FILTER(gspt2,10);
gspt4:=FILTER(gspt3,11);
gspt5:=FILTER(gspt4,10);
gspt6:=REF(CLOSE,BARSLAST(gspt5));
gspt7:=BARSLAST(gspt5);
gspt8:=(HHV(HIGH,gspt7)-LLV(LOW,gspt7))/LLV(LOW,gspt7)*100;
XL1:=REF(gspt7,1)>10 AND REF(gspt8,1)< 100 AND CROSS(CLOSE,gspt6) AND (VOL>=REF(VOL,1)*2 OR VOL>=REF(VOL,2)*2) AND gspt1>2 AND CLOSE< 50;
XG:=XLJ AND XL1;
IF(XG,2,0),COLORYELLOW,LINETHICK4;
IF(XG,1,0),COLORBLACK,LINETHICK3;