传统MACD指标应用广泛,缺点是严重迟钝化,本副图修改了传统MACD算法,对主升段判断更加准确,同时添加吸,拉,派,落指标. 参数设置:SHORT:=8;LONG:=17;MID:=6;也可根据个人喜好复原为常用的:12,26,9.
SHORT:=8; LONG:=17; MID:=6; 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),COLORYELLOW; 吸:=XLPL.NOTEXT吸; 拉:=XLPL.NOTEXT拉; 派:=XLPL.NOTEXT派; 落:=XLPL.NOTEXT落; STICKLINE(吸,0,MACD,0.5,0),COLORLIRED;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
传统MACD指标应用广泛,缺点是严重迟钝化,本副图修改了传统MACD算法,对主升段判断更加准确,同时添加吸,拉,派,落指标.
参数设置:SHORT:=8;LONG:=17;MID:=6;也可根据个人喜好复原为常用的:12,26,9.
SHORT:=8;
LONG:=17;
MID:=6;
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),COLORYELLOW;
吸:=XLPL.NOTEXT吸;
拉:=XLPL.NOTEXT拉;
派:=XLPL.NOTEXT派;
落:=XLPL.NOTEXT落;
STICKLINE(吸,0,MACD,0.5,0),COLORLIRED;