DIFF : EMA(CLOSE,8) - EMA(CLOSE,17);
DEA : EMA(DIFF,9);
macd : 2*(DIFF-DEA);
Zero : 0;
VERTLINE((crOSS(DIFF,0) AND MacD>0 OR CROSS(DIFF,DEA) AND DIFF>0 AND MACD>0),3),colorFF00FF;
DRAWTEXT((CROSS(DIFF,0) AND MACD>0 OR CROSS(DIFF,DEA) AND DIFF>0 AND DEA>0 AND MACD>0),HHV(Abs(MACD),15),'多升区'),colorgreen;
VERTLINE((CROSS(DEA,DIFF) AND DIFF>0 AND MACD<0),3),color00FF00;
DRAWTEXT((CROSS(DEA,DIFF) AND DIFF>0 AND MACD<0),HHV(ABS(MACD),15),'空降区'),colorwhite;
VERTLINE((CROSS(0,DIFF) AND DIFF<0 AND MACD<0),3),colorgray;
DRAWTEXT((CROSS(0,DIFF) AND DIFF<0 AND MACD<0),HHV(ABS(MACD),15),'死亡区'),colorgray;
VERTLINE((CROSS(DIFF,DEA) AND DIFF<0 AND MACD>0),3),colorFFFF00;
DRAWTEXT((CROSS(DIFF,DEA) AND DIFF<0 AND MACD>0),HHV(ABS(MACD),15),'盘整区'),colormagenta;