X_1:=(CLOSE+OPEN+LOW+HIGH)/4;
X_2:=WINNER(X_1*0.96)*100;
X_3:=MA(X_2,5);
X_4:=EMA(X_2,20);
STICKLINE(X_3>X_2 OR X_4>X_2,2,82,6,0),COLORBLUE;
X_5:=EMA(WINNER(CLOSE)*70,3);
X_6:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_7:=X_6/(X_5+X_6)*100;
X_8:=X_5/(X_5+X_6)*100;
主力控盘系数:INTPART(X_8),COLORYELLOW,LINETHICK0;
X_9:=CLOSE*VOL;
X_10:=EMA((EMA(X_9,3)/EMA(VOL,3)+EMA(X_9,6)/EMA(VOL,6)+EMA(X_9,12)/EMA(VOL,12)+EMA(X_9,24)/EMA(VOL,24))/4,13);
STICKLINE(EMA(CLOSE,5)>X_10,30,70,8,0),COLORGRAY;
X_11:=WINNER(CLOSE)*100;
STICKLINE(X_11>60,88,108,4,0),COLOR000099;
STICKLINE(X_11>60,88,108,2.5,0),COLOR0000CC;
STICKLINE(X_11>60,88,108,1.8,0),COLORRED;
STICKLINE(X_11>60,88,108,0.6,0),COLORCC66FF;
X_12:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),13);
X_13:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_14:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_15:=X_12+99;
X_16:=X_13+100;
X_17:=X_14+100;
X_18:=EMA(CLOSE,14);
X_19:=(X_18-REF(X_18,1))/REF(X_18,1)*100;
X_20:=IF(X_19<0,REF(EMA(CLOSE,14),BARSLAST(CROSS(0,X_19))+1),1);
IF(X_19<0,(CLOSE-X_20)/X_20*100,0);
X_21:=DRAWNULL;
X_22:=17;
X_23:=COUNT(100*(EMA(EMA(EMA(CLOSE,X_22),X_22),X_22)-REF(EMA(EMA(EMA(CLOSE,X_22),X_22),X_22),1))/REF(EMA(EMA(EMA(CLOSE,X_22),X_22),X_22),1)<REF(100*(EMA(EMA(EMA(CLOSE,X_22),X_22),X_22)-REF(EMA(EMA(EMA(CLOSE,X_22),X_22),X_22),1))/REF(EMA(EMA(EMA(CLOSE,X_22),X_22),X_22),1),1),5)>=4;
X_24:=WINNER(CLOSE*0.95)>0.5 AND COST(85)<CLOSE;
X_25:=MA(FORCAST(CLOSE,2),40);
X_26:=EMA(CLOSE,2);
X_27:=ABS(CLOSE-REF(CLOSE,20));
X_28:=SUM(ABS(CLOSE-REF(CLOSE,1)),20);
X_29:=X_27/X_28;
X_30:=2/(2+1);
X_31:=2/(30+1);
X_32:=X_29*(X_30-X_31)+X_31;
X_33:=X_32*X_32;
X_34:=DMA(CLOSE,X_33);
X_35:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_36:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_37:=(20*X_36+19*REF(X_36,1)+18*REF(X_36,2)+17*REF(X_36,3)+16*REF(X_36,4)+15*REF(X_36,5)+14*REF(X_36,6)+13*REF(X_36,7)+12*REF(X_36,8)+11*REF(X_36,9)+10*REF(X_36,10)+9*REF(X_36,11)+8*REF(X_36,12)+7*REF(X_36,13)+6*REF(X_36,14)+5*REF(X_36,15)+4*REF(X_36,16)+3*REF(X_36,17)+2*REF(X_36,18)+REF(X_36,20))/210;
X_38:=EMA((EMA(CLOSE*VOL,27)/EMA(VOL,27)+EMA(CLOSE*VOL,54)/EMA(VOL,54)+EMA(CLOSE*VOL,108)/EMA(VOL,108)+EMA(CLOSE*VOL,316)/EMA(VOL,316))/4,34);
X_39:=REF(EMA(CLOSE,10),1);
X_40:=(EMA(CLOSE,10)-X_39)/X_39*100;
X_41:=REF(EMA(CLOSE,10),1);
X_42:=EMA(X_41,10);
X_43:=100*(X_39-X_42);
X_44:=X_43;
X_45:=EMA(X_43,10);
X_46:=EMA((4*CLOSE+OPEN+HIGH+LOW)/7,2);
X_47:=(X_46-EMA(X_46,89))/EMA(X_46,421)*500-100;
X_48:=X_44>X_45 AND X_47>REF(X_47,1) AND X_26>X_34;
X_49:=MA(CLOSE,3);
X_50:=MA(CLOSE,21);
X_51:=(X_49+X_50)/2;
X_52:=MA(CLOSE,8)+MA(CLOSE,8)-REF(MA(CLOSE,8),1);
X_53:=IF(MA(CLOSE,13)<X_52,X_52,MA(CLOSE,13));
X_54:=X_53-(EMA(CLOSE,3)-X_53);
X_55:=(LOW+HIGH+CLOSE*2)/20;
X_56:=EMA(X_55,21);
X_57:=(X_56-REF(X_56,1))/REF(X_56,1)*50;
X_58:=X_26>X_25 AND X_35>=X_37 AND X_57>0 AND X_54<X_51;
STICKLINE(X_58,(-1),12,5,0),COLORMAGENTA;
X_59:=MA(FORCAST(CLOSE,2),40);
X_60:=CROSS(CLOSE,X_59) AND X_48;
STICKLINE(CROSS(CLOSE,X_59) AND X_48,40,83,4,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(REF(X_60,1) AND CLOSE>REF(LOW,1) AND X_58,70,15),COLORCYAN;
DRAWTEXT(REF(X_60,1) AND CLOSE>REF(LOW,1) AND X_58,60,16),COLORCYAN;
X_61:=REF(CLOSE,1);
X_62:=SMA(MAX(CLOSE-X_61,0),5,1)/SMA(ABS(CLOSE-X_61),6,1)*100;
DRAWICON(CROSS(76,X_62),108,12),COLORGREEN;
DRAWTEXT(CROSS(X_15,X_17) AND LOW<X_35,70,17),COLORGREEN;
DRAWTEXT(CROSS(X_15,X_17) AND LOW<X_35,55,18),COLORGREEN;
DRAWTEXT(CROSS(X_17,X_15) AND REF(CROSS(X_15,X_17),1) AND X_11>60,70,19),COLORRED;
DRAWTEXT(CROSS(X_17,X_15) AND REF(CROSS(X_15,X_17),1) AND X_11>60,55,20),COLORRED;
X_63:=COST(30);
DRAWTEXT(CROSS(MA(CLOSE,13),MA(CLOSE,5)) AND CLOSE<OPEN AND LOW<X_35,70,17),COLORGREEN;
DRAWTEXT(CROSS(MA(CLOSE,13),MA(CLOSE,5)) AND CLOSE<OPEN AND LOW<X_35,55,18),COLORGREEN;
X_64:=CROSS(EMA(CLOSE,2),X_63) AND X_21=0;
DRAWTEXT(CROSS(EMA(CLOSE,2),X_63) AND X_21=0,0.35,21),COLORCYAN;
DRAWTEXT(CROSS(EMA(CLOSE,2),X_63) AND X_21=0,0.42,21),COLORCYAN;
DRAWTEXT(CROSS(EMA(CLOSE,2),X_63) AND X_21=0,0.28,21),COLORCYAN;
DRAWTEXT(REF(X_64,1) AND LOW>=REF(LOW,1) AND HIGH>REF(HIGH,1) AND CLOSE>REF(OPEN,1),50,15),COLORWHITE;
DRAWTEXT(REF(X_64,1) AND LOW>=REF(LOW,1) AND HIGH>REF(HIGH,1) AND CLOSE>REF(OPEN,1),40,16),COLORWHITE;
X_65:=CLOSE-REF(CLOSE,1);
X_66:=100*EMA(EMA(X_65,6),6)/EMA(EMA(ABS(X_65),6),6);
X_67:=HHV(X_66,2)=HHV(X_66,7) AND COUNT(X_66>50,2) AND CROSS(MA(X_66,2),X_66);
DRAWTEXT(X_67 AND CROSS(76,X_62),80,4),COLORGREEN;
DRAWTEXT(X_67 AND CROSS(76,X_62),70,22),COLORWHITE;
DRAWTEXT(X_67 AND CROSS(76,X_62),60,23),COLORGREEN;
DRAWTEXT(X_67 AND X_11<60 AND EMA(CLOSE,5)>X_10,80,4),COLORGREEN;
DRAWTEXT(X_67 AND X_11<60 AND EMA(CLOSE,5)>X_10,70,24),COLORGREEN;
DRAWTEXT(X_67 AND X_11<60 AND EMA(CLOSE,5)>X_10,60,23),COLORGREEN;
DRAWTEXT(X_67 AND X_11>60 AND X_58,80,4),COLORGREEN;
DRAWTEXT(X_67 AND X_11>60 AND X_58,70,25),COLORGREEN;
DRAWTEXT(X_67 AND X_11>60 AND X_58,60,23),COLORGREEN;
X_68:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
X_69:=IF(CLOSE<REF(OPEN,1) AND X_68<0,1,0);
X_70:=IF(CLOSE<REF(OPEN,2) AND X_68<0,1,0);
X_71:=X_69=0 AND REF(X_69,1)=1 AND X_70=0 AND REF(X_70,1)=1;
DRAWTEXT(X_71 AND LOW>X_35,60,26),COLORWHITE;
X_72:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_73:=(20*X_72+19*REF(X_72,1)+18*REF(X_72,2)+17*REF(X_72,3)+16*REF(X_72,4)+15*REF(X_72,5)+14*REF(X_72,6)+13*REF(X_72,7)+12*REF(X_72,8)+11*REF(X_72,9)+10*REF(X_72,10)+9*REF(X_72,11)+8*REF(X_72,12)+7*REF(X_72,13)+6*REF(X_72,14)+5*REF(X_72,15)+4*REF(X_72,16)+3*REF(X_72,17)+2*REF(X_72,18)+REF(X_72,20))/210;
X_74:=EMA(X_73,20);
X_75:=LLV(X_66,2)=LLV(X_66,7) AND COUNT(X_66<0,2) AND CROSS(X_66,MA(X_66,2));
X_76:=SMA(EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),5)*100,3,1)*10;
DRAWTEXT(CROSS(X_76,0) OR CROSS(CLOSE,X_74) AND X_75=1,40,27),COLORWHITE;
DRAWTEXT(CROSS(X_76,0) OR CROSS(CLOSE,X_74) AND X_75=1,30,18),COLORWHITE;
GSZX:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;