{通达信已通过测试}{选股}var1:=(2*close+high+low)/4;var2:=llv(low,34);var3:=hhv(high,34);xx:=ema((var1-var2)/(var3-var2)*100,13);yy:=ema(0.667*ref(xx,1)+0.333*xx,2);选股:cross(xx,yy) and xx<20;-----------------...
{n:(1950,2100,2013);y:(1,12,3);r:(1,31,25);将以上参数输入参数栏内,参数n\y\r分别表示年、月、日,可以自由调整} 指定日期:=year=n and month=y and day=r;指定均线:=expma(c,x);cross(c,指定均线)and 指定日期;
hs:=v/capital*100;s1:=between(hs,3,30);lb:=v/ref(ma(v,5),1);s2:=between(lb,1.3,30);st:=if(namelike('st')or namelike('*st'),0,1);s3:=c/ref(c,1);xz:s1 and s2 and s3>1.02 and st and v>1 and c;