M1:=5;
M2:=10;
M3:=20;
M4:=60;
M5:=120;
M6:=250;
N:=60;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
X_1:=HIGH=LOW AND CLOSE>REF(CLOSE,1)*1.095;
X_2:=EXIST(X_1,10);
X_3:=EXIST(X_1,5);
X_4:=REF(CLOSE,1)<REF(OPEN,1);
X_5:=CLOSE>OPEN;
X_6:=X_2 AND X_4 AND X_5;
X_7:=X_3 AND X_4 AND X_5;
X_8:=REF(OPEN,1)>REF(CLOSE,2)*1.095 AND REF(CLOSE,1)>REF(CLOSE,2)*1.095;
X_9:=CLOSE>OPEN;
X_10:=X_8 AND X_9;
X_11:=REF(OPEN,2)=REF(CLOSE,2) AND REF(CLOSE,2)>REF(CLOSE,3)*1.095;
X_12:=REF(OPEN,1)>REF(CLOSE,1);
X_13:=CLOSE>OPEN AND CLOSE>REF(OPEN,1);
X_14:=X_11 AND X_12 AND X_13;
X_15:=X_6 OR X_10;
X_16:=X_10 OR X_14;
DRAWICON(X_15,LOW*0.98,1);
DRAWICON(X_16,LOW*0.92,3);
X_17:=IF(REF(CLOSE,1)*1.1-CLOSE<0.005,1,0) AND CLOSE>OPEN;
STICKLINE(X_17,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(X_17,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(X_17,HIGH,LOW,0,0),COLORYELLOW;