dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);var1:=(2*close+high+low)/4;var2:=expma(expma(expma(var1,4),4),4);j: =(var2-ref(var2,1))/ref(var2,1)*100, colorstick;xg: dif>ref(dif,1) and dea>ref(dea,1) and ref(j,2)>ref(j,1) and j>ref(j,1) 20210311
角度d:=atan((kdj.d/ref(kdj.d,1)-1)*100)*180/3.1416;xg:ref(kdj.j,1)<ref(kdj.j,2) and between(ref(kdj.j,1)-ref(kdj.d,1),0,5) and 角度d>30 and kdj.j>ref(kdj.j,1);(已测试)
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分钟选...
ma1:=ma(c,5);ma2:=ma(c,10);ma3:=ma(c,20);hh:=max(ma1,max(ma2,ma3));ll:=min(ma1,min(ma2,ma3));xg:o<ll and c>hh and cross(ma1,ref(ma1,1)) and cross(ma2,ref(ma2,1)) and cross(ma3,ref(ma3,1));(取阳线同时...