通达信MACD底背离金叉二次金叉选股指标(源码)
2014-03-24 08:15:00来源:本站整理浏览:640
MACD:=("MACD.DIF"-"MACD.DEA")*2*60;
JCCOUNT:=COUNT(CROSS("MACD.DIF","MACD.DEA"),BARSLAST("MACD.DEA">=0));
二次金叉:=CROSS("MACD.DIF","MACD.DEA") AND "MACD.DEA"<0 AND COUNT(JCCOUNT=2,21)=1;
A101:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
底背离:=REF(CLOSE,A101+1)>CLOSE AND "MACD.DIF">REF("MACD.DIF",A101+1) AND CROSS("MACD.DIF","MACD.DEA");
XG:二次金叉 AND 底背离;
- 上一篇公式:通达信突破监控指标(源码)
- 下一篇公式:通达信全仓买入主图指标(源码)