M:DRAWLINE(LOW=TROUGH(2,10,1),LOW,HIGH=PEAK(1,10,1),HIGH-(PEAK(1,10,1)-TROUGH(2,10,1))/3*2,1),COLORMAGENTA,LINETHICK2;
X_1:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;
做空资金:SMA(X_1,6,1)-7,NODRAW;
X_2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,13)-LLV(LOW,13))*100;
做多资金:SMA(X_2,8,1)-2,NODRAW,LINETHICK2;
周D:KDJ.D(27,3,3),NODRAW;
X_3:=ATAN((MA(周D,10)/REF(MA(周D,10),1)-1)*100)*180/3.1416;
X_4:=CROSS(X_3,做空资金);
DRAWTEXT(X_4,LOW*0.99,8),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.1058,0,1,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.1258,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.1858,0,0,GNBLOCK),COLORYELLOW;
X_5:=REF(HHV(HIGH,72),3);
顶:REFDATE(X_5,DATE),COLORYELLOW;
X_6:=CLOSE/REF(CLOSE,1)>1.0969;
STICKLINE(X_6,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(X_6,HIGH,LOW,0,0),COLORRED;
X_7:=CLOSE*VOL;
X_8:=EMA((EMA(X_7,3)/EMA(VOL,3)+EMA(X_7,6)/EMA(VOL,6)+EMA(X_7,12)/EMA(VOL,12)+EMA(X_7,24)/EMA(VOL,24))/4,13);
白线:1.06*X_8,COLORWHITE,LINETHICK2;
MA4:MA(CLOSE,4),COLORWHITE;
MA24:MA(CLOSE,24),COLORGREEN,LINETHICK2;
IF(MA4>=REF(MA4,1),MA4,DRAWNULL),COLORRED,LINETHICK2;
X_9:=CLOSE>=MA4;
X_10:=CLOSE<MA4;
DRAWICON(CROSS(X_9,X_10),LOW-0.2,1);
X_11:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_12:=(8*X_11+7*REF(X_11,1)+6*REF(X_11,2)+5*REF(X_11,3)+4*REF(X_11,4)+3*REF(X_11,5)+2*REF(X_11,6)+REF(X_11,8))/36;
X_13:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>X_12 AND CLOSE>REF(CLOSE,1);
X_14:=FILTER(X_13,5);
REF(CLOSE,BARSLAST(X_14));
REF(CLOSE,BARSLAST(X_14));
CLOSE;
6;
X_15:=0;
X_16:=CLOSE>MA(CLOSE,63);
X_17:=CLOSE>X_15 AND X_16 AND CLOSE>HHV(MA((LOW+HIGH+CLOSE)/3,5),60) AND CLOSE>1.06*EMA((EMA(CLOSE*VOL,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)+EMA(CLOSE*VOL,12)/EMA(VOL,12)+EMA(CLOSE*VOL,24)/EMA(VOL,24))/4,13) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(X_17,CLOSE*1.01,9),COLORYELLOW;
STICKLINE(X_14,OPEN,CLOSE,3,0),COLORYELLOW;
X_18:=72;
X_19:=100-3*SMA((CLOSE-LLV(LOW,X_18))/(HHV(HIGH,X_18)-LLV(LOW,X_18))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,X_18))/(HHV(HIGH,X_18)-LLV(LOW,X_18))*100,20,1),15,1);
X_20:=100-3*SMA((OPEN-LLV(LOW,X_18))/(HHV(HIGH,X_18)-LLV(LOW,X_18))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,X_18))/(HHV(HIGH,X_18)-LLV(LOW,X_18))*100,20,1),15,1);
活筹OAMV:X_19,NODRAW;
X_21:=EMA(AMOUNT/VOL/100,5);
X_22:=EMA(AMOUNT/VOL/100,13);
X_23:=X_21-X_22;
势能:IF(1000*X_23/X_21>0,1000*X_23/X_21,0),NODRAW;
X_24:=CROSS(势能,活筹OAMV) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(X_24,LOW*0.98,7),COLORRED;
DRAWICON(CROSS(做多资金,活筹OAMV),LOW*0.98,5);