当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:MACD底背顶背((通达信公式 副图 源码 测试图)
软件名称:[B]MACD底背顶背((通达信公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2020-11-19 00:15:19
软件简介:
自己用的最准的MACD底背离和顶背离公式,公式不加密
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE,LINETHICK2;
DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK2;
MACD:(DIFF-DEA)*2,COLORSTICK,,LINETHICK2;
JC:=CROSS(DIFF,DEA);
SC:=CROSS(DEA,DIFF);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
HH:=VALUEWHEN(CROSS(DEA,DIFF),HHV(H,N1));
HH2:=VALUEWHEN(CROSS(DEA,DIFF),REF(HH,1));
MHD:=VALUEWHEN(CROSS(DEA,DIFF),HHV(DIFF,N1));
MHD2:=VALUEWHEN(CROSS(DEA,DIFF),REF(MHD,1));
LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));
LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));
MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(DIFF,N2));
MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));
A:=CROSS(DEA,DIFF)&&HH>HH2&&MHD<MHD2,NODRAW;
B:=CROSS(DIFF,DEA)&&LL<LL2&&MLD>MLD2,NODRAW;
底背:=BACKSET(B=1,LLVBARS(DIFF,N2)+2),NODRAW;
顶背:=BACKSET(A=1,HHVBARS(DIFF,N1)+2),NODRAW;
DRAWICON(CROSS(顶背,0.5),DIFF,3);
DRAWICON(CROSS(底背,0.5),DIFF,5);
DRAWTEXT(CROSS(顶背,0.5),DIFF+1,'顶背离'),COLORGREEN;
DRAWTEXT(CROSS(底背,0.5),DIFF,'底背离'),COLORRED;
[url=http://www.70822.com/soft/sort013/sort05/down-152195.html]MACD底背顶背((通达信公式 副图 源码 测试图)[/url]