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;