通達信MACD精簡信號指標公式
基本概況:
- 指標類別: 通達信指標
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標語言: 簡體中文
- 指標來源: 互聯(lián)網(wǎng)
- 指標日期: 2017-08-04 00:00:00
內(nèi)容介紹:
通達信MACD精簡信號指標公式:
D1:=12;
D2:=26;
D3:=9;
DIF:EMA(CLOSE,D1)-EMA(CLOSE,D2);
DEA:EMA(DIF,D3);
MACD:2*(DIF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
STICKLINE(低位金叉,0,0.12,4,0),COLORYELLOW;
DRAWTEXT(低位金叉,0.1,' 低位金叉'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,30)=1;
STICKLINE(二次金叉,0,0.06,4,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,0.3,' 二次金叉'),COLORYELLOW;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
{上一次昨日MACD金叉到當日周期數(shù)。}
通達信MACD精簡信號指標公式
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA) AND DEA<0;
{上次金叉時的收盤價>當日收盤價,股價創(chuàng)新低,當日MACD金叉點卻未創(chuàng)新低,形成底背離 ,并且在0軸之下。}
STICKLINE(底背離,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK4;
{第一次金叉為起點,出現(xiàn)底背離的第二次金叉為終點,畫線段。}
DRAWTEXT(底背離,-0.15,' 底背離'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);
DRAWTEXT(頂背離,0.3,' 頂背離'),COLORGREEN;
頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK4;
通達信MACD精簡信號指標公式更新時間:2017-08-04 16:51