BBD
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
资金流向:(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;
STICKLINE(资金流向>0,0,资金流向,2,0),COLORRED;
STICKLINE(资金流向<0,0,资金流向,2,0),COLORLIGREEN;
三日流向:SUM(资金流向,5),NODRAW;
五日流向:SUM(资金流向,5),NODRAW;
十日流向:SUM(资金流向,10),NODRAW;
SH:=SUM(资金流向,15),COLOR0000FF;
SH1:SMA(SH,3,1);
SH2:=SMA(SH1,3,1);
SH3:SMA(SH2,3,1),LINETHICK2,COLORCYAN;
IF(SH3<SH1,SH3,DRAWNULL),COLORWHITE,LINETHICK2;
IF(SH1>SH3,SH1,DRAWNULL),COLORRED,LINETHICK2;