x1:=finance(7)<=300000000 and dyna**(7)>5;x2:=macd.macd>ref(macd.macd,1) and macd.dif<macd.dea ;x1 and count(x2,3)=3 and macd.dif>=0;快要金叉是个模糊的概念,公式无法准确表达出来,所以只能用白线连续3天向上来表达。
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);xg:dea>ref(dea,1);(信号太多了)dea转头向上的选股:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);xg:ref(dea,1)<ref(dea,2) and dea>ref(dea,1);
xstk:=low>ref(high, 1);tt1:=barslast(xstk)+1;hh:=ref(high,tt1);:=tt1<-3 and count(xstk,tt)>=1 and low>hh and low<=hh*1.01 andnot(ex**t(cross(hh.low),tt1));count(low>ref(high,1),3)>...