公式编写说明:
MACD金叉死叉的日期。
公式源码示例:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW,LINETHICK2; DEA:EMA(DIFF,9),COLORGREEN; DRAWICON(CROSS(DIFF,DEA),L-0.1,1); DRAWICON(CROSS(DEA,DIFF),H+0.1,2); 日期2:=REF(DATE,BARSLAST(CROSS(DIFF,DEA)))+19000000; 日期3:=REF(DATE,BARSLAST(CROSS(DEA,DIFF)))+19000000; DRAWNUMBER(CROSS(DIFF,DEA),LOW*0.98,日期2); DRAWNUMBER(CROSS(DEA,DIFF),H*1.02,日期3),COLORCYAN;
看股 吧公式 www.kangu ba.com