DIF:=EMA(CLOSE,13)-EMA(CLOSE,28),NODRAW;
DEA:=EMA(DIF,8),NODRAW;
MACD:(DIF-DEA)*5,NODRAW;
STICKLINE((MACD > 0),0,MACD,3.2,0),COLOR000033;
STICKLINE((MACD > 0),0,MACD,2.7,0),COLOR000066;
STICKLINE((MACD > 0),0,MACD,2.1,0),COLOR000099;
STICKLINE((MACD > 0),0,MACD,1.5,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD,0.9,0),COLOR0000FF;
STICKLINE((MACD > 0),0,MACD,0.3,0),COLORCC66FF;
STICKLINE((MACD <= 0),0,MACD,3,2),COLOR990000;
STICKLINE((MACD <= 0),0,MACD,2.7,0),COLORCC0000;
STICKLINE((MACD <= 0),0,MACD,2.1,0),COLORFF4400;
STICKLINE((MACD <= 0),0,MACD,1.5,0),COLORFF8800;
STICKLINE((MACD <= 0),0,MACD,0.9,0),COLORFFCC00;
STICKLINE((MACD <= 0),0,MACD,0.3,0),COLORCYAN;
STICKLINE((MACD<REF(MACD,1)AND MACD>0),0,MACD,3,2),COLOR990000;
STICKLINE((MACD<REF(MACD,1)AND MACD>0),0,MACD,2.7,0),COLORCC0000;
STICKLINE((MACD<REF(MACD,1)AND MACD>0),0,MACD,2.1,0),COLORFF4400;
STICKLINE((MACD<REF(MACD,1)AND MACD>0),0,MACD,1.5,0),COLORFF8800;
STICKLINE((MACD<REF(MACD,1)AND MACD>0),0,MACD,0.9,0),COLORFFCC00;
STICKLINE((MACD<REF(MACD,1)AND MACD>0),0,MACD,0.3,0),COLORCYAN;
STICKLINE((MACD>REF(MACD,1)AND MACD<0),0,MACD,3.2,0),COLOR000033;
STICKLINE((MACD>REF(MACD,1)AND MACD<0),0,MACD,2.7,0),COLOR000066;
STICKLINE((MACD>REF(MACD,1)AND MACD<0),0,MACD,2.1,0),COLOR000099;
STICKLINE((MACD>REF(MACD,1)AND MACD<0),0,MACD,1.5,0),COLOR0000CC;
STICKLINE((MACD>REF(MACD,1)AND MACD<0),0,MACD,0.9,0),COLOR0000FF;
STICKLINE((MACD>REF(MACD,1)AND MACD<0),0,MACD,0.3,0),COLORCC66FF;
DRAWTEXT_FIX(C>O,0.01,0.81,0,'更多精彩指标公式,
请关注微信公众号'),COLORYELLOW;
VA1:=DMA((((H+L) + (C*2)) / 4),0.9);
VA2:=REF(EMA(VA1,3),1);
VA3:(MA((C-VA2)*10,2))*0.1,NODRAW;
VA4:=V*100/CAPITAL;
VA5:=MA(VA4,4);
VA6:=MA(VA4,9);
VA7:=MA(VA4,17);
VA8:=MA(VA4,34);
VA9:=(VA5+VA6+VA7+VA8)/4;
VB1:(VA5-VA9)COLORMAGENTA,NODRAW;
VB2:(VA6-VA9)COLORYELLOW,NODRAW;
VB3:(VA7-VA9)COLORLIBLUE,NODRAW;
VB4:(VA8-VA9)COLORBLUE,NODRAW;
VB5:STICKLINE(VB1>=0 AND VB1>=REF(VB1,1),5,5+VB1,1.5,0),COLORRED;
VB6:STICKLINE(VB1>=0 AND VB1< REF(VB1,1),5,5+VB1,1.5,0),COLORYELLOW;
VB7:STICKLINE(VB1<0 AND VB1>=REF(VB1,1),5,5+VB1,1.5,0),COLORGREEN;
VB8:STICKLINE(VB1<0 AND VB1< REF(VB1,1),5,5+VB1,1.5,0),COLORGREEN;
VB54:STICKLINE(VA3>=0 AND VA3>=REF(VA3,1),10,10+VA3,1.5,0),COLORRED;
VB64:STICKLINE(VA3>=0 AND VA3< REF(VA3,1),10,10+VA3,1.5,0),COLORRED;
VB74:STICKLINE(VA3<0 AND VA3>=REF(VA3,1),10,10+VA3,1.5,0),COLORGREEN;
VB84:STICKLINE(VA3<0 AND VA3< REF(VA3,1),10,10+VA3,1.5,0),COLORGREEN;