软件名称:[B]特殊MACD[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2017-10-18 01:11:09
软件简介:
通达信特殊MACD指标公式
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MYY:=EMA(CLOSE,3)-EMA(CLOSE,3);
YMM:=EMA(MYY,3);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),colorred,LINETHICK2;
IF(DIF<REF(DIF,1),DIF,DRAWNULL),colorgreen,LINETHICK2;
MACD2:=MACD;//www.70822.com
获利比:WINNER(C),NODRAW;
STICKLINE((MACD2>=0),0,MACD2,0,1),colorred;
STICKLINE(((MACD2>=0) AND (MACD2 < REF(MACD2,1))),0,MACD2,0,0),colormagenta;
STICKLINE((MACD2<0),0,MACD2,0,0),colorgreen;
STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,0,1),colorwhite;
DRAWICON(LONGCROSS(CLOSE,MA(CLOSE,5),17),MACD2,1);
DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);
DRAWICON(CROSS(DIF,DEA) AND DIF<=0.2,LLV(DIF,1),29);
DRAWICON(CROSS(DIF>=0,DIF<DEA),DIF,1);
低位反转:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)AND REF(MACD ,2)<REF(MACD ,3)AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(低位反转,0,MACD,0.3,0),colorred;
高位反转:=MACD>0 AND MACD<REF(MACD ,1) AND REF(MACD ,1)>REF(MACD ,2)AND REF(MACD ,2)>REF(MACD ,3)AND REF(MACD ,3)>REF(MACD ,4);
STICKLINE(高位反转,0,MACD,0.3,0),colorgreen;
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,0,25);
三次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,60)=1;
DRAWICON(三次金叉,0,26);A1:=IF(MACD2>0,1,-1);
TJ:=MACD2>0;//www.70822.com
T:=MACD2<0;
DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),coloryellow;
DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),coloryellow;
DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),colorgreen;
DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),colorgreen;
DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),colorgreen;
DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),colorgreen;
DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),colorgreen;
DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),colorgreen;
DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),colorgreen;
DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),colorgreen;
DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),colorgreen;
跌家数:INDEXDEC,NODRAW,colorgreen;
高开:=O>REF(H,1);
隔空高开:高开,NODRAW;
低开:=O<REF(L,1);
隔空低开:低开,NODRAW;
[url=http://www.70822.com/soft/sort013/sort036/down-117231.html]特殊MACD[/url]