当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:我整合的MACD-(源码)
软件名称:[B]我整合的MACD-(源码)[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:3.00 KB
官方主页:Home Page
更新时间:2010-07-19 05:36:58
软件简介:
我只会整合,不会原创。谢谢各位原作者。
整合的MACD
DIF:EMA(CLOSE,5)-EMA(CLOSE,11);
DEA:EMA(DIF,5);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK1;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS
("MACD.DIF","MACD.DEA");
DRAWICON(B1>0,DIF*1.21,1);{底背离}
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)> "MACD.DIF" AND CROSS
("MACD.DEA","MACD.DIF");
DRAWICON(D1>0,DEA*1.21,2);{顶背离};
DRAWICON(CROSS(MACD,0),0,1);
DRAWICON(CROSS(0,MACD),0.2,2);
DRAWICON(CROSS(DIF,DEA),DIF,1),COLORRED;
DRAWICON(CROSS(DEA,DIF),DEA,2),COLORGREEN;
[url=http://www.70822.com/soft/sort013/sort05/down-22759.html]我整合的MACD-(源码)[/url]