X_1:=AMOUNT/VOL;
X_2:=(OPEN+CLOSE)/2;
X_3:=0;
X_4:=EMA(CLOSE,6);
X_5:=MA(X_4,1);
X_6:=EMA(CLOSE,18);
X_7:=IF(PERIOD=4,60,0) AND CLOSE>0 AND VOL>1;
X_8:=1; {IF(DATE>=1230416,X_7,1);}
X_9:=REF(X_5,1);
X_10:=REF(X_6,1);
X_11:=BARSCOUNT(CLOSE);
X_12:=IF(X_11=1,0,(X_5-X_9)/X_9*100);
X_13:=IF(X_11=1,0,(X_6-X_10)/X_10*100);
X_14:=REF(CLOSE,1);
X_15:=IF(X_11=1,0,(CLOSE-X_14)/X_14*100);
X_16:=EMA(HIGH,13)*X_8;
X_17:=EMA(LOW,13)*X_8;
X_18:=(X_16+X_17)/2;
X_19:=EMA(HIGH,72)*X_8;
X_20:=EMA(LOW,72)*X_8;
X_21:=(X_19+X_20)/2;
X_22:=IF(X_11=1,(CLOSE+OPEN)/2,X_9);
X_23:=X_5;
X_24:=X_9;
X_25:=REF(X_5,2);
X_26:=(X_23+X_24+X_25)/3;
X_27:=(ABS(X_23-X_26)+ABS(X_24-X_26)+ABS(X_25-X_26))/3;
X_28:=REF(X_12,1);
X_29:=REF(X_12,2);
X_30:=IF(X_11<3,0,X_27/X_23*100);
X_31:=IF(X_11<3,0,IF(X_12<0 AND X_28<0 AND X_29<0,0-1,1));
X_32:=(1+0.5/100)*X_18*X_8;
X_33:=(1-0.5/100)*X_18*X_8;
X_34:=(1+0.5/100)*X_21*X_8;
X_35:=(1-0.5/100)*X_21*X_8;
X_36:=X_32;
X_37:=X_33;
X_38:=X_35;
X_39:=X_34;
X_40:=IF(X_11>11 AND X_28<0 AND X_12>0,1,0);
X_41:=0;
X_42:=IF(CLOSE>MA(CLOSE,5),X_41+10,X_41-10);
X_43:=IF(CLOSE>MA(CLOSE,10),X_42+10,X_42-10);
X_44:=IF(CLOSE>MA(CLOSE,10),X_43+10,X_43-10);
X_45:=IF(MA(CLOSE,5)>MA(CLOSE,10),X_44+10,X_44-10);
X_46:=IF(MA(CLOSE,10)>MA(CLOSE,20),X_45+10,X_45-10);
X_47:=X_46*X_8;
X_48:=BARSLAST(X_40=1);
X_49:=REF(X_48,1);
STICKLINE(X_47>=(-50),(-50),X_47,2.6,0),COLORGREEN;
STICKLINE(X_47>=(-30),(-30),X_47,2.6,0),COLORCYAN;
STICKLINE(X_47>=0 AND X_8,0,X_47,2.6,0),COLORLIRED;
STICKLINE(X_47<=50 AND X_47>=30 AND X_8,30,X_47,2.6,0),COLORRED;
X_50:=IF(X_11>11 AND X_28<0 AND X_12>0,X_49+1,X_49);
X_51:=IF(X_11>11 AND X_28>0 AND X_12<0,1,0);
X_52:=X_22;
X_53:=X_22;
X_54:=IF(X_11>11 AND X_52<OPEN,OPEN,X_22);
X_55:=IF(X_11>11 AND X_53>OPEN,OPEN,X_22);
X_56:=0;
X_57:=REF(X_22,1);
X_58:=IF(X_12>0.5 AND (X_30>0.215 OR LOW>X_22) AND CLOSE>=OPEN AND (CLOSE>=200 OR (CLOSE<200 AND X_15<11)),1,0);
X_59:=IF(CLOSE>X_33,X_33,DRAWNULL);
X_60:=IF(CLOSE<X_33,X_33,DRAWNULL);
X_61:=IF(CLOSE>X_32,X_32,DRAWNULL);
X_62:=IF(CLOSE<X_32,X_32,DRAWNULL);
X_63:=IF(X_12<0-0.3 AND (X_30>0.2 OR HIGH<X_22) AND (OPEN>=CLOSE OR X_15<0-1),1,0);
X_64:=BARSSINCE(X_58);
X_65:=BARSSINCE(X_63);
X_66:=X_63 OR BARSTATUS=1;
X_67:=COUNT(X_58,BARSLAST(X_66))=1 AND X_58;
X_68:=REF(VOL,1)*100;
X_69:=REF(VOL,2)*100;
X_70:=REF(VOL,3)*100;
X_71:=REF(CLOSE,1);
X_72:=SMA(MAX(CLOSE-X_71,0),6,1)/SMA(ABS(CLOSE-X_71),6,1)*100;
X_73:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
DRAWICON(CROSS(85,X_72),60,15);
X_74:=SMA(MAX(CLOSE-X_71,0),7,1)/SMA(ABS(CLOSE-X_71),7,1)*100;
X_75:=SMA(MAX(CLOSE-X_71,0),13,1)/SMA(ABS(CLOSE-X_71),13,1)*100;
X_76:=BARSCOUNT(CLOSE);
X_77:=(X_74<20 AND X_75<25 AND X_76>50 AND X_73<70 AND VOL*100<X_68 AND X_68<X_69 AND X_69<X_70)*30;
X_78:=CROSS(85,X_72)*30;
DRAWICON(CROSS(X_72,25),(-40),22);
X_79:=IF(CLOSE>X_35,X_35,DRAWNULL);
X_80:=IF(CLOSE<X_35,X_35,DRAWNULL);
X_81:=IF(CLOSE>X_34,X_34,DRAWNULL);
X_82:=IF(CLOSE<X_34,X_34,DRAWNULL);
X_83:=COUNT(X_66,BARSLAST(X_58))=1 AND X_66;
X_84:=BARSLAST(X_83);
X_85:=BARSLAST(X_67);
X_86:=(SUM(X_83,X_85)=0)*X_85;
X_87:=REF(X_54,X_86);
X_88:=REF(X_87,1);
X_89:=IF(X_67=1,(CLOSE-X_54)/X_54*100,(X_55-X_88)/X_88*100);
X_90:=IF(X_86=0 AND X_67=0 AND X_83=0,0,X_89);
X_91:=X_67;
X_92:=X_83;
X_93:=X_86;
X_94:=X_90;
MF:EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*X_8,COLORMAGENTA,LINETHICK2;
RI:EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*X_8,COLORYELLOW,LINETHICK2;
DRAWICON(CROSS(MF,RI) AND MF<(-10),(-40),34);
DRAWICON(CROSS(MF,RI) AND MF<(-10) AND RI>REF(RI,1) OR CROSS(MF,RI) AND X_8 AND RI<(-35),(-15),13);
DRAWICON(CROSS(X_72,20) AND RI<(-20) AND X_77,(-50),23);