SHORT:=8;
LONG:=18;
MID:=2;
dif:Ema(CLOSE,SHORT)-ema(CLOSE,LONG),NODRAW;
DEA:EMA(DIF,MID),NODRAW;
MacD:DIF*2-DEA,COLORSTICK;
主力控盘:=SMA(macd,2,1);
DRAWBAND(MACD,RGB(225,25,55),主力控盘,RGB(25,225,55));
VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);
obv1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=EMA(C,3);
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,1,0),COLORBLUE;
吸:=XLPL.NOTEXT吸;
拉:=XLPL.NOTEXT拉;
派:=XLPL.NOTEXT派;
落:=XLPL.NOTEXT落;
STICKLINE(吸,0,MACD,0.5,0),COLORLICYAN;