通達信K線+MACD指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2024-06-14 來源:互聯(lián)網(wǎng)
通達信K線+MACD指標公式:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA);
STICKLINE(MACD>0,MACD,0,0.5,1),COLORRED;
STICKLINE(MACD<0,MACD,0,0.5,1),COLORGREEN;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,1),COLORWHITE;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,1),COLORFF00FF;
綠柱面積:IF (MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),NODRAW,COLORGREEN;
紅柱面積:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),NODRAW,COLORRED;
DRAWTEXT(CROSS(DIFF,80),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-80,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-80),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(80,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,30),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-30,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-30),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(30,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,50),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-50,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-50),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(50,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,80),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-8,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-8),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(8,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,5),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-50,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-5),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(5,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,3),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-3,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-3),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(3,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,10),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-10,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-10),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(10,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,1),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-1,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-1),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(1,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,2),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-2,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-2),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(2,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,20),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(-20,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-20),DIFF,'強'),COLORRED;
DRAWTEXT(CROSS(20,DIFF),DIFF,'弱'),COLORGREEN;
通達信K線+MACD指標公式實例圖解:
通達信K線+MACD指標公式