macd主图:100*EMA(EMA(趋势跟庄,12),12)/EMA(EMA(ABS(趋势跟庄),12),12),COLORWHITE;
公式指标:MA(macd主图,6),COLORYELLOW;
cvds1:=macd主图-公式指标,COLORBLACK;
cvds2:cvds1,COLORRED;
STICKLINE( UPNDAY(cvds1,1)AND UPNDAY(macd主图,1),cvds1 ,0,2.9,0)COLORRED;
STICKLINE( UPNDAY(cvds1,1)AND UPNDAY(macd主图,1),cvds1 ,0,2,0)COLORLIRED;
STICKLINE( UPNDAY(cvds1,1)AND UPNDAY(macd主图,1),cvds1,0,0.5,0)COLORWHITE;
STICKLINE( UPNDAY(cvds1,1)AND DOWNNDAY(macd主图,1),cvds1 ,0,2.9,0),COLORGRAY;
STICKLINE( UPNDAY(cvds1,1)AND DOWNNDAY(macd主图,1),cvds1,0,1,0),COLORLIGRAY;
STICKLINE( UPNDAY(cvds1,1)AND DOWNNDAY(macd主图,1),cvds1 ,0,0.5,0)COLORWHITE;
STICKLINE( DOWNNDAY(cvds1,1),cvds1 ,0,2.9,0),COLORGRAY;
STICKLINE( DOWNNDAY(cvds1,1),cvds1,0,1,0),COLORLIGRAY;
STICKLINE( DOWNNDAY(cvds1,1),cvds1 ,0,0.5,0)COLORWHITE;
DRAWICON(UPNDAY(cvds1,1)AND UPNDAY(macd主图,1) AND UPNDAY(公式指标,1),公式指标,1);
DRAWICON(CROSS(公式指标,macd主图),公式指标,2);