大智慧甲乙量MACD指标公式

大智慧甲乙量MACD指标公式:
V1:EMA(V,12)-EMA(V,26);

V2:EMA(V1,9);

macdV:(V1-V2)*2,COLORstICK;

DK:=MacDV;

STICKLINE(DK<REF(DK,1)AND DK>0,0,DK,1,0 ),COLOR00BBFF;

STICKLINE(DK>=REF(DK,1)AND DK>0,0,DK,1,0 ),COLOR0011BB;

STICKLINE(DK>REF(DK,1)AND DK<0,0,DK,1,0),COLORBB11BB;

STICKLINE(DK<=REF(DK,1)AND DK<0,0,DK,1,0),COLORFFBB11;

DRAWICON(crOSS(V2,V1) ,V1,1);

DRAWICON(CROSS(V1,V2) ,V2,2);