通达信真正的MACD背离指标公式

2024-01-25 05:58发布

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);:(DIF-DEA)*2,COLORSTICK;{信号}BB值:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);AAA:=EMA(CLOSE,12)-EMA(CLOSE,26);DRAWTEXT(OSS(BB值,9),0, '‘底部'),COLORYELLOW;DRAWICON(CROSS(BB值,9),0,41);STICKLINE(CROSS(BB值,9),AAA,0,2,0),COLORYELLOW;{DRAWICON(REF(DIF,1)>REF(DIF,2) AND DIF0 AND DIF>DEA,DIF*1.1,2),COLORGREEN;DRAWICON(CROSS(DEA,DIF) AND DIF>0,DIF,37),COLORGREEN;DRAWICON(REF(DIF,1)REF(DIF,1) AND DIF<0 DIF<0,DIF,36),COLORRED;}X_2:=BARSLAST(RE
 解锁全文需 1  财富值,免费注册即送20财富值!