大盘这几天估计不会好到哪里去,钱不好赚。
发个修改别人的MACD主图指标来和大家分享
用法就和MACD一个样,你懂的。
高1:=REF(HHV(H,150),3);
低1:=REF(LLV(L,150),3);
H3:=(高1+低1)*0.5;
中轴:REFDATE(H3,DATE),COLORWHITE,LINETHICK1;
B1:=EMA(C,12);
B2:=EMA(C,26);
B3:=B1-B2;
WDIF:=EMA(EMA(EMA(C,3),3),3)+B3;
WDEA:=EMA(WDIF,9);
MACD:=2*(WDIF-WDEA);
STICKLINE(MACD>0,中轴,中轴+MACD,0,-1),COLORRED;
STICKLINE(MACD<0,中轴,中轴+MACD,0,-1),COLORLIBLUE;
STICKLINE(MACD0,中轴,中轴+MACD,0,-1 ),COLOR00BBFF;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,中轴,中轴+MACD,0,-1 ),COLOR0011BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,中轴,中轴+MACD,0,-1),COLORBB11BB;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,中轴,中轴+MACD,0,-1),COLORGREEN;
STICKLINE(C>O,H,L,0,0),COLORRED;
STICKLINE(C>O,C,O,3.1,1),COLORRED;
STICKLINE(C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C<=O,C,O,3.1,1),COLORCYAN;