九毛八公式指标
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;