通達信黃金MACD背離指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2021-08-18 來源:互聯(lián)網(wǎng)
通達信黃金MACD背離指標公式:
SHORT:=12;LONG:=26;M:=9;
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背離:(CC AND EE)*DEA,COLOR00FFFF;
頂背離:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背離:(LL AND GG)*DEA,COLORMAGENTA;
底背離:(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入?yún)^(qū):(JJ AND ZZ)*DEA,POINTDOT,COLORYELLOW;{MACD藍柱縮短---指今日比昨天短}
STICKLINE(介入?yún)^(qū)=DEA,DEA,DIFF,0.5,1),COLORYELLOW;
DRAWTEXT(CROSS(DIFF,DEA ),0,'金'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF ),0,'死'),COLORFFFF00;
通達信黃金MACD背離指標公式實例圖解:
通達信黃金MACD背離指標公式