dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg:ref(dif,2)>ref(dif,1)and dif>ref(dif,1) and dif>dea and dif-dea<0.02;测试通过,希望能够帮助你!
你好,帮你编写了,希望能帮到你。rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;typ:=(high+low+close)/3;cci1:=(typ-ma(typ,14))/(0.015***edev(typ,14));条件选股:cross(k,d) and ...
a1:=hhv(c,1800)>llv(c,1800)*1.6 and llv(c,1800)*2<hhv(c,1800) and count(c/ref(c,1)>0.098,100)>=1 and barscount(close)>600 ;a2:= (c-ma(c,200))/ma(c,200)<0.2 { 相对于200天线正乖离小于20%...