X_1:=DATE<=1151201;
X_2:=N1;
X_3:=N2;
X_4:=REFX(CLOSE,1)>=CLOSE AND REFX(CLOSE,2)>=CLOSE AND REFX(CLOSE,3)>=CLOSE AND REFX(LOW,1)>=LOW AND REFX(LOW,2)>=LOW AND REFX(LOW,3)>=LOW AND (CLOSE>REF(CLOSE,1) AND CLOSE/OPEN>=1.01 OR CLOSE/OPEN>=1.02);
X_5:=FILTER(X_4,3);
X_6:=SUMBARS(X_5,2)-1;
X_7:=BARSLAST(X_5);
X_8:=REF(CLOSE,X_6);
X_9:=REF(OPEN,X_6);
X_10:=REF(CLOSE,X_7);
X_11:=REF(OPEN,X_7);
X_12:=BETWEEN((REF(CLOSE,X_6)-REF(OPEN,X_6))/REF(OPEN,X_6)*100,N2,N3);
X_13:=BETWEEN((REF(CLOSE,X_7)-REF(OPEN,X_7))/REF(OPEN,X_7)*100,N4,N5);
X_14:=BARSLAST(CLOSE<=REF(CLOSE,1));
X_15:=CLOSE>REF(CLOSE,X_14) AND MAX(OPEN,CLOSE)>=MAX(REF(OPEN,X_14),REF(CLOSE,X_14)) AND VOL>REF(VOL,X_14);
X_16:=IF(N6=0,1,X_15);
X_17:=BETWEEN((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,N7,N8);
X_18:=BETWEEN(CLOSE,N9,N10);
X_19:=LLV(LOW,X_6)>=X_9;
X_20:=COUNT(X_5,X_2)=2;
X_20 AND X_19 AND X_12 AND X_13 AND X_10>=X_8 AND BETWEEN(X_11,X_9,X_8) AND X_16 AND X_17 AND X_18 AND X_1 AND DYNAINFO(4)>0;