X_1:=9*M;
X_2:=X_1*4/3;
X_3:=X_1*26/9;
X_4:=EMA(CLOSE,X_2)-EMA(CLOSE,X_3);
X_5:=EMA(X_4,X_1);
X_6:=(X_4-X_5)*2;
DIFH:(EMA(CLOSE,X_2)-EMA(CLOSE,X_3))*10;
DEAH:EMA(X_4,X_1)*10;
X_7:=CROSS(X_5,X_4);
换手:IF(X_6>0,VOL/CAPITAL*100,0),COLORSTICK;
X_8:=VMACD.MACD#WEEK;
X_9:=BARSLAST(X_8<0);
X_10:=IF(X_8<0,REF(X_9,BARSLAST(X_8>0)),X_9);
X_11:=SUM(IF(X_8>0,VOL,0),X_10+1);
区间换手:X_11/CAPITAL*100,NODRAW;
X_12:=ROUND(区间换手);
DRAWNUMBER(X_7,HHV(REF(换手,1),5)+3,ABS(X_12)),COLORMAGENTA;
X_13:=CROSS(SUM(换手,X_10)>=100,0.5) AND X_4>X_5;
X_14:=CROSS(SUM(换手,X_10)>=200,0.5) AND X_4>X_5;
X_15:=CROSS(SUM(换手,X_10)>=300,0.5) AND X_4>X_5;
STICKLINE(X_13,0,换手,2.5,0),COLORWHITE;
STICKLINE(X_14,0,换手,2.5,0),COLORYELLOW;
STICKLINE(X_15,0,换手,2.5,0),COLORMAGENTA;
控盘度:区间换手*13.3/100,NODRAW;
STICKLINE(控盘度>40 AND X_6>0,0,1.5,4,0),COLORWHITE;
STICKLINE(控盘度>65 AND X_6>0,0,1.5,4,0),COLORYELLOW;
STICKLINE(控盘度>90 AND X_6>0,0,1.5,4,0),COLORMAGENTA;
换庄线:15,DOTLINE,COLORYELLOW;
X_16:=HHV(X_6*10,256);
X_17:=LLV(VMACD.DIF,256);
L80%:0.809*X_16+0.191*X_17,DOTLINE,COLORMAGENTA,NODRAW;
X_18:=0.618*X_16+0.382*X_17;
X_19:=REF(LOW,1);
X_20:=SMA(ABS(LOW-X_19),13,1)/SMA(MAX(LOW-X_19,0),13,1)*100;
X_21:=EMA(IF(CLOSE*1.2,X_20*13,X_20/13),13);
X_22:=LLV(LOW,34);
X_23:=HHV(X_21,34);
X_24:=IF(LLV(LOW,56),1,0);
X_25:=EMA(IF(LOW<=X_22,(X_21+X_23*2)/2,0),3)/618*X_24;
X_26:=X_25>REF(X_25,1);
X_27:=100;
X_28:=3;
X_29:=REF(LLV(LOW,100),3);
X_30:=REFDATE(X_29,DATE);
X_31:=LOW=X_30;
X_32:=X_26 AND X_31;
X_33:=X_32>REF(X_32,1);
X_34:=X_33>REF(X_33,1);
STICKLINE(IF(X_34,(-120),0),(-1),13,2,0),COLORGREEN;
DRAWICON(X_34,18,1);
0,COLORRED;