X_1:=IF(PERIOD<3,35,IF(PERIOD<=5,28,IF(PERIOD<=7,21,IF(PERIOD<=8,14,IF(PERIOD<=9,7,5)))));
X_2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_3:=MAX(HIGH-LOW,MAX(HIGH-REF(CLOSE,1),REF(CLOSE,1)-LOW))/REF(CLOSE,1)*100;
X_4:=(HIGH-LOW)/REF(CLOSE,1)*100;
X_5:=vol/REF(MA(VOL,5),1);
X_6:=VOL;
X_7:=(HIGH+LOW+CLOSE)/3;
X_8:=CLOSE>X_7;
X_9:=CLOSE<X_7;
X_10:=X_2*X_6;
X_11:=Abs(IF(X_9,X_10,0));
X_12:=IF(X_8,X_10,0);
流出:ABS(SUM(IF(X_10<0,X_10,0),7)),DOTLINE,COLOR008000;
流入:SUM(IF(X_10>0,X_10,0),7),DOTLINE,COLORRED;
X_13:=ABS(流出-流入);
X_14:=49;
X_15:=(流出+流入)/2;
X_16:=STDP(MAX(流出,流入),1);
X_17:=STDP(MIN(流出,流入),1);
X_18:=WMA(X_15,X_14);
X_19:X_18+1.618*X_16;
X_20:=X_18-1.618*X_17;
X_21:=流入>流出 AND 流入>=X_18;
X_22:=流出>流入 AND 流出>=X_18;
X_23:=流入>流出 AND 流入>X_19,NODRAW;
X_24:=流出>流入 AND 流出>X_19;
X_25:=流入<流出 AND 流入<X_20;
X_26:=流出<流入 AND 流出<X_20;
X_27:=流入>=HHV(流入,100) AND 流入>0;
X_28:=流出>=HHV(流出,100) AND 流出>0;
X_29:=流入<=LLV(流入,100);
X_30:=流出<=LLV(流出,100);
STICKLINE(X_23,流入,MAX(X_19,流出),2,0),COLORFF0080;
STICKLINE(X_24,流出,MAX(X_19,流入),2,0),COLORYELLOW;
NOTEXT0:IF(流入>流出,流入,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT1:IF(流入<流出,流出,DRAWNULL),COLORGREEN,LINETHICK2;