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F(XYZ_25,2)*0.22;
XYZ_27:=EMA(XYZ_26,8);
XYZ_28:=EMA(XYZ_26,3);
XYZ_29:=XYZ_28;
XYZ_30:=VOL;
XYZ_31:=MA(XYZ_30,5);
XYZ_32:=MA(XYZ_30,10);
XYZ_33:=XYZ_31>=XYZ_32;
XYZ_34:=XYZ_29>=0;
XYZ_35:=XYZ_34 AND XYZ_33;
DRAWICON(XYZ_35,1,1);
XYZ_36:=MA(KDJ.K#WEEK(9,3,3),5);
XYZ_37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
XYZ_38:=EMA(XYZ_37,9/2);
XYZ_39:=XYZ_36>=REF(XYZ_36,1) AND XYZ_37>=XYZ_38;
DRAWICON(XYZ_39,0.9,13);
XYZ_40:=XYZ_39 OR XYZ_35;
XYZ_41:=XYZ_3 AND XYZ_7 AND XYZ_11 AND XYZ_14 AND XYZ_16 AND XYZ_20;
XYZ_42:=COST(50)*COST(50)/COST(80);
XYZ_43:=COST(40)*COST(40)/COST(60);
XYZ_44:=XYZ_43-XYZ_42;
XYZ_45:=XYZ_44>0 AND CLOSE>XYZ_43;
XYZ_46:=XYZ_44< 0 AND CLOSE>XYZ_42;
XYZ_47:=XYZ_45 OR XYZ_46 OR (XYZ_45 AND XYZ_46);
XYZ_48:=XYZ_47=0 OR (XYZ_44>0 AND CLOSE>XYZ_43 AND CLOSE< MA(CLOSE,10)) OR (XYZ_44< 0 AND CLOSE>XYZ_42 AND CLOSE< MA(CLOSE,5));
XYZ_49:=XYZ_47 AND REF(XYZ_48,1);
XYZ_50:=XYZ_48 AND REF(XYZ_47,1);
STICKLINE(XYZ_47,0.5,0.8,3,0),COLORRED;
STICKLINE(XYZ_48,0.5,0.8,3,1),COLORGRAY;
STICKLINE(XYZ_41,0.5,0.8,3,0),COLORMAGENTA;
DRAWICON(XYZ_47 OR XYZ_41 AND REF(XYZ_47 OR XYZ_41,1)=0 AND XYZ_40,0.5,7);
XYZ_51:=(HIGH+LOW+CLOSE*2)/4;
XYZ_52:=EMA(XYZ_51,17);
XYZ_53:=STD(XYZ_51,17);
XYZ_54:=((XYZ_51-XYZ_52)/XYZ_53*100+200)/4;
XYZ_55:=(EMA(XYZ_54,5)-25)*1.56;
XYZ_56:=EMA(XYZ_55,2)*1.22;
XYZ_57:=EMA(XYZ_56,2);
STICKLINE(XYZ_56-XYZ_57>0,0.2,0.4,3,0),COLORRED;
STICKLINE(XYZ_56-XYZ_57< 0,0.2,0.4,3,0),COLORGREEN;
STICKLINE(XYZ_56-XYZ_57>0 AND REF(XYZ_56-XYZ_57< 0,1),0.2,0.4,3.05,0),COLOR000099;
STICKLINE(XYZ_56-XYZ_57>0 AND REF(XYZ_56-XYZ_57< 0,1),0.2,0.4,2.2,0),COLOR0000CC;
STICKLINE(XYZ_56-XYZ_57>0 AND REF(XYZ_56-XYZ_57< 0,1),0.2,0.4,1.5,0),COLORRED;
STICKLINE(XYZ_56-XYZ_57>0 AND REF(XYZ_56-XYZ_57< 0,1),0.2,0.4,0.5,0),COLORYELLOW;
STICKLINE(XYZ_56-XYZ_57>0 AND XYZ_56-XYZ_57< REF(XYZ_56-XYZ_57,1) AND XYZ_57>110,0.2,0.4,3,0),COLORLIRED;