N5:=2;
DRAWGBK(CLOSE>0,RGB(0,0,0),RGB(0,0,0),0,1,0);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWBAND(MA(CLOSE,21),RGB(36,0,0),MA(CLOSE,45),RGB(9,35,19));
DRAWBAND(MA(CLOSE,5),RGB(155,5,50),MA(CLOSE,10),RGB(83,123,68));
X_1:=122010199;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA5:IF(DATE<X_1,MA(CLOSE,5),DRAWNULL),COLORWHITE;
MA12:IF(DATE<X_1,MA(CLOSE,12),DRAWNULL),COLORYELLOW;
MA21:IF(DATE<X_1,MA(CLOSE,21),DRAWNULL),COLORC08000;
MA32:IF(DATE<X_1,MA(CLOSE,32),DRAWNULL),COLORBLUE;
MA45:IF(DATE<X_1,MA(CLOSE,45),DRAWNULL),COLOR408000;
MA70:IF(DATE<X_1,MA(CLOSE,70),DRAWNULL),COLOR800000;
X_3:=IF(DATE<X_1,MA(CLOSE,21),DRAWNULL);
X_4:=NDAY(MA(CLOSE,5),MA(CLOSE,10),3);
IF(MA32>=REF(MA45,1),MA45,DRAWNULL),COLORRED,LINETHICK2;
IF(MA21>REF(MA45,1),MA21,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA(CLOSE,30)>REF(MA(CLOSE,30),1) AND MA12>MA32,MA32,DRAWNULL),COLORC080FF,LINETHICK2;
IF(MA(CLOSE,20)<REF(MA(CLOSE,20),1),X_3,DRAWNULL),COLORGREEN,LINETHICK2;
IF(MA(CLOSE,45)>REF(MA(CLOSE,45),1),MA45,DRAWNULL),COLORRED,LINETHICK2;
X_5:=CLOSE=HHV(CLOSE,13);
X_6:=BARSLAST(FILTER(CROSS(0.8,X_5),2))+1;
X_7:=REF(CLOSE,X_6);
X_8:=CROSS(CLOSE,REF(X_7,1));
STICKLINE(X_6<=6,X_7,X_7,3,0),COLORMAGENTA;
X_9:=CLOSE=LLV(CLOSE,13);
X_10:=BARSLAST(FILTER(CROSS(0.8,X_9),2))+1;
X_11:=REF(CLOSE,X_10);
STICKLINE(X_10<=6,X_11,X_11,3,0),COLORGREEN;
X_12:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
X_13:=(HIGH+LOW+CLOSE)/3;
X_14:=(X_13-MA(X_13,14))/(0.015*AVEDEV(X_13,14));
X_15:=(X_13-MA(X_13,70))/(0.015*AVEDEV(X_13,70));
X_16:=IF(X_14>=150 AND X_14<200 AND X_15>=150 AND X_15<200,10,0);
X_17:=IF(X_14<=(-150) AND X_14>(-200) AND X_15<=(-150) AND X_15>(-200),(-10),X_16);
X_18:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
X_19:=IF(1,100-ABS(X_18),DRAWNULL);
X_20:=IF(X_19<90,X_19,100);
X_21:=IF(X_12>0,X_12,0);
X_22:=IF(X_15>=200 AND X_14>=150,15,IF(X_15<=(-200) AND X_14<=(-150),(-15),X_17))+60;
X_23:=X_21>48 AND X_22>60 AND IF(DATE<X_1,X_20<100,DRAWNULL);
DRAWICON(X_23 AND COUNT(X_23,30)=1,HIGH*1.01,16);
DRAWTEXT_FIX(DATE>X_1,0.45,0.2,0,3),COLORCYAN;
X_24:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_25:=SMA(X_24,3,1);
X_26:=SMA(X_25,3,1);
X_27:=3*X_25-2*X_26;
X_28:=IF(DATE<X_1,CLOSE-REF(CLOSE,1),DRAWNULL);
X_29:=100*EMA(EMA(X_28,6),6)/EMA(EMA(ABS(X_28),6),6);
X_30:=LLV(X_29,2)=LLV(X_29,7) AND COUNT(X_29<0,2) AND CROSS(X_29,MA(X_29,2));
STICKLINE(X_30,OPEN,CLOSE,2,0),COLORYELLOW;
X_31:=IF(CLOSE>OPEN,HIGH-CLOSE,HIGH-OPEN)<2*ABS(CLOSE-OPEN);
X_32:=EMA(CLOSE,3);
X_33:=EMA(CLOSE,13);
X_34:=EMA(CLOSE,21);
X_35:=EMA(CLOSE,55);
X_36:=X_32>=REF(X_32,3) AND X_33>=REF(X_33,1) AND X_34>=REF(X_34,1) AND CROSS(CLOSE,X_32) AND CROSS(CLOSE,X_33) AND CROSS(CLOSE,X_34);
DRAWICON(X_36 AND FILTER(X_36,10),LOW,1);