X_1:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
X_2:=REF(EMA(X_1,3),1);
X_3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_4:=IF(CLOSE>OPEN,X_3*(HIGH-LOW),IF(CLOSE< OPEN,X_3*(HIGH-OPEN+(CLOSE-LOW)),VOL/2))+IF(CLOSE>OPEN,0-X_3*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE< OPEN,0-X_3*(HIGH-LOW),0-VOL/2));
X_5:=VOL/CAPITAL;
X_6:=IF(X_5>10,10,X_5);
X_7:=X_4/20/1.15;
X_8:=X_7*0.55+REF(X_7,1)*0.33+REF(X_7,2)*0.22;
X_9:=EMA(X_8,8);
X_10:=EMA(X_8,3);
STICKLINE(X_7*0.4>=0,X_7*0.4+X_10,0,3,0),COLORYELLOW;
STICKLINE(X_7*0.4< 0,X_7*0.4+X_10,0,3,0),COLORGREEN;
X_11:=IF(X_7*0.4+X_10>0,X_7*0.4+X_10,DRAWNULL);
X_12:=IF(X_7*0.4+X_10< 0,X_7*0.4+X_10,DRAWNULL);
X_13:=X_7*0.4+X_10;
X_14:=AMOUNT/10000;
资金净进出:IF(X_7*0.4+X_10>0,X_11,X_12),POINTDOT,COLORWHITE;
进出比例%:IF(X_7*0.4+X_10>0,X_11/X_14*100,X_12/X_14*100),COLORYELLOW;
X_15:=X_10;
STICKLINE(X_15>0,X_15,0,3,0),COLORRED;
STICKLINE(X_15< 0,X_15,0,3,0),COLORFF3300;
X_16:=REF(X_12,1)< 0 AND X_11>30 AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND CLOSE>MA(CLOSE,3);
X_17:=(3*CLOSE+2*LOW+OPEN+HIGH)/7;
X_18:=(20*X_17+19*REF(X_17,1)+18*REF(X_17,2)+17*REF(X_17,3)+16*REF(X_17,4)+15*REF(X_17,5)+14*REF(X_17,6)+13*REF(X_17,7)+12*REF(X_17,8)+11*REF(X_17,9)+10*REF(X_17,10)+9*REF(X_17,11)+8*REF(X_17,12)+7*REF(X_17,13)+6*REF(X_17,14)+5*REF(X_17,15)+4*REF(X_17,16)+3*REF(X_17,17)+2*REF(X_17,18)+REF(X_17,20))/210;
X_19:=X_11>300 AND CROSS(CLOSE,X_18);