同花順變色帶MACD金叉死叉指標公式
- 指標類別: 同花順指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2021-02-25 來源:互聯網
同花順變色帶MACD金叉死叉指標公式:
long:=26;short:=12;m:=9;
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),LAYER0;
DEA :=EMA(DIFF,9),LAYER0;
MACD : 2*(DIFF-DEA),COLORSTICK,LAYER0;
主升 := DIFF>0 AND DIFF>DEA,COLORffffff,POINTDOT,LINETHICK0;
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>REF(DIFF,1),color0999ff,DIFF>DEA AND DIFF<REF(DIFF,1),colorff3303);
FILLRGN(DIFF,DEA,主升 AND DIFF>DEA AND DIFF>REF(DIFF,1),color0333ff,主升 AND DIFF>DEA AND DIFF<REF(DIFF,1),colorff3303);
FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>REF(DIFF,1),colorFFFFFF,DIFF<DEA AND DIFF<REF(DIFF,1),color111111);
PARTLINE(DIFF,DIFF>REF(DIFF,1),color333333,DIFF<REF(DIFF,1),color444444),LINETHICK1;
PARTLINE(DEA,DEA>REF(DEA,1),color333333,DEA<REF(DEA,1),color444444),LINETHICK1;
同花順變色帶MACD金叉死叉指標公式實例圖解:
同花順變色帶MACD金叉死叉指標公式