通達信分時MACD指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2019-08-26 來源:互聯(lián)網(wǎng)
通達信分時MACD指標公式:
DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DRAWBAND(DIFF,RGB(100,300,150),DEA,RGB(100,100,300));
STICKLINE(MACD>0,0,MACD,0,1),COLORF00FF0;
STICKLINE(MACD<0,0,MACD,0,1),COLOR00FF00;
VARX1:=HHV(DEA,43);
VARX2:=LLV(DEA,43);
VARX3:=DEA-(DIFF-DEA);
高點線:IF(DIFF>VARX1 AND DEA=VARX1,MAX(LLV(VARX1,10),VARX3),VARX1),COLORGREEN,LINETHICK1;
低點線:IF(DIFF<VARX2 AND DEA=VARX2,MIN(HHV(VARX2,10),VARX3),VARX2),COLORGREEN,LINETHICK1;
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,8,1)*15-VAR110*10.38;
T:=FILTER(IF(VAR111<=VAR110 AND VAR18>0,VAR18*8,0),5);
止跌:DRAWTEXT(T AND DIFF<低點線,DEA*1.01,'止跌'),COLORYELLOW;
通達信分時MACD指標公式實例圖解:
通達信分時MACD指標公式