大智慧MACD金死叉指标公式

SHORT:=12;LONG:=26;M:=9;

DIFF: EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite;

DEA: EMA(DIFF,M),coloryellow;

macd: 2*(DIFF-DEA), COLORstICK;

DRAWTEXT(crOSS( DIFF,DEA), DEA,'金'), COLORYELLOW ;

DRAWTEXT(CROSS(DEA,DIFF), DIFF,'死'),COLORBLUE ;