把多个选股公式整合成预警公式
2020/1/18 19:10:40
公式编写说明:
KDJ 4日内出现2次金叉 macd 4日内出现一次金叉 然后再未来的4日内或者同时出现布林线喇叭口预警 布林线喇叭口的公式:{BOLL}BOLL:=MA(CLOSE,20);UPPER:=BOLL+2*STD(CLOSE,20);LOWER:=BOLL-2*STD(CLOSE,20);BIASBOLL:=(UPPER-LOWER)/LOWER*100;XG:=COUNT(BIASBOLL>REF(BIASBOLL,1),3)>0 AND COUNT(BIASBOLL<11,3)>0 AND C>UPPER;XG=1;kdj金叉:KDJ低位金叉:=CROSS(KDJ.J,KDJ.K) AND MACD>REF(MACD,1) AND KDJ.D<20;XG:COUNT(KDJ低位金叉,4)=2;改成选股公式也可以 谢谢老师了!
公式源码回答:
BOLL:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
LOWER:=BOLL-2*STD(CLOSE,20);
BIASBOLL:=(UPPER-LOWER)/LOWER*100;
XG:=COUNT(BIASBOLL>REF(BIASBOLL,1),3)>0 AND COUNT(BIASBOLL<11,3)>0 AND C>UPPER;
BARSLAST(CROSS(MACD.MACD,0))>1 AND BARSLAST(CROSS(MACD.MACD,0))<=8 AND REF(COUNT(CROSS(KDJ.J,KDJ.K) AND MACD>REF(MACD,1) AND KDJ.D<20,4)=2,4) AND XG;
投 股票网 www.t ou18.cn
股市公式下载推荐