DRAWBAND(1,RGB(0,20,50),0,RGB(0,0,0));
gspt1:=REF(CLOSE,1);
gspt2:=(gspt1-CLOSE)*100/gspt1;
gspt3:=gspt2>4 AND ABS(CLOSE-OPEN)/CLOSE>0.05;
gspt4:=CLOSE< OPEN AND CLOSE< 0.98*MA(CLOSE,5) AND ABS(CLOSE-OPEN)/CLOSE>0.03;
gspt5:=gspt4 AND (MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>=1/3 AND gspt2>=3;
gspt6:=CONST(REF(LOW,BARSLAST(gspt5>0)));
gspt7:=0.033;
gspt8:=ABS(gspt6-LOW)<=gspt7 OR ABS(gspt6-MIN(OPEN,CLOSE))<=gspt7 OR ABS(gspt6-HIGH)<=gspt7 OR ABS(gspt6-MAX(OPEN,CLOSE))<=gspt7;
gspt9:=COUNT(gspt8,30)>=1;
gspt10:=VOL<=0.505*REF(VOL,1);
gspt11:=REF(gspt9,1) AND gspt10 AND COUNT(gspt3,10);
gspt12:=SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,5)< 1;
gspt13:=(HIGH-LOW)/LOW*100>5 AND (MIN(OPEN,CLOSE)-LOW)/LOW*100>5;
gspt14:=gspt12 AND gspt13;
gspt15:=IF(CODELIKE(1),0,1);
gspt16:=IF(CODELIKE(2),0,1);
gspt17:=IF(CODELIKE(3),0,1);
gspt18:=IF(CODELIKE(4),0,1);
gspt19:=COUNT(gspt11,3)>1;
gspt20:=gspt10 OR gspt3 OR gspt8 AND gspt15 AND gspt16 AND gspt17 AND gspt18 AND COUNT(gspt10,3)>1;
STICKLINE(gspt20,0,0.8,3,0),COLORRED;
STICKLINE(gspt20,0,0.8,3,0),COLORRED;