d:=ma(close,80)-ma(close,10)/3;{收盘价的80日简单移动平均-收盘价的10日简单移动平均/3} xg:if(close<d and vol/240>ma(vol,5)/240 and close>ref(close,1)*1.08 and close(close,13)*1.3,1,0);{如果符合抄底则选股,否则返回0} 狂飙蚂蚁博客编写,还有一个...
{xggs-}dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);tj1:=ema(dea,4);tj2:=ema(dif,17);macd:=(dif-dea)*2;{xg1:=macd>0 and (cross(macd,dea) or cross(macd,tj1));}xg2:(dif>0 and dea>0) and cro...
diff:=ema(close,12)-ema(close,27);dea:=ema(diff,9);macd:=2*(diff-dea);低位金叉:=cross(diff,dea) and diff<-0.1;jccount:=count(cross(diff,dea),barslast(dea>=0));二次金叉:=cross(diff,dea) and dea<0 and ...