当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:(转)MACD底部(0轴以下)N次金叉选股
软件名称:[B](转)MACD底部(0轴以下)N次金叉选股[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2013-01-01 06:36:21
软件简介:
{MACD底部-新蜡笔小新} DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 多次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=N,22)=1; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:=REF(DIFF,A1+1)<DIFF AND REF(DEA,A1+1)<DEA AND REF(L,A1+1)>L AND CROSS(DIFF,DEA); XG:多次金叉 AND 底背离; {N取值范围1~8}; 针对大家对N值设定麻烦问题,小新在强班指导下,做了一点小小的更改,以后选股就不必再为N值的设定而烦恼了,可以一次过选出底背离情况下N次金叉【至少1次(含1次)】的股票!在此多谢强班的指导! 新源码如下: DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); N次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT>=1,22)>=1; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:=REF(DIFF,A1+1)<DIFF AND REF(DEA,A1+1)<DEA AND REF(L,A1+1)>L AND CROSS(DIFF,DEA); XG:N次金叉 AND 底背离;
[url=http://www.70822.com/soft/sort013/sort05/down-56680.html](转)MACD底部(0轴以下)N次金叉选股[/url]