{要求选出的黄柱在0轴以上} a1:=ema(c,7)-ema(c,21);b1:=ema((0.668*ref(a1,1)+0.333*a1),1);l2:=ma(amount/(100*v),13);cys13:=(c-l2)/l2*100;做空:=if(b1-a1,b1,a1);强庄:cys13>5 and 做空;
a:=cross(macd.dif,macd.dea);a and macd.dif>=macd.dea+0.01 and range(macd.dif,-0.3,0.3) 周dif:="macd.dif#week"(12,26,9);周dea:="macd.dea#week"(12,26,9);周dea>0 and cross(周dif,周dea);
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg:macd>0 and dif-dea<0.1 and dif>dea;你设计这样的条件会出现大量金zhidao叉时或者死叉前dif与dea离的很近符版合选股条件. 如果你要是想选dif与dea一段时间离的很近,缺少时间条件. 至于在30分钟选...