a:=ref(c,10)/ref(c,11)>1.099;{微调1.099,可改变选股数量,如1.098}b:=ref(l,10)=llv(l,11);d:=hhv(h,11)/llv(l,11)<1.33;e:=c/ref(c,1)>1.01;f:=ref(c,1)/ref(c,2)<1;选股:a and b and d and e and f;{在飞狐股道测试今年的20...
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%...
f30a:=max(ma(c,10),ma(c,20));f30:=c>f30a;f60a:=max(ma(c,20),ma(c,28));f60:=c>f60a;fra:=max(ma(c,60),ma(c,120));fr:=c>fra;xg:cross(f30 and f60 and fr,0.5);
按照这只股票编出来不难,但你定义的都是幅度,没有时间.形态分析,光分析涨跌空间不行你还要计算时间因素. n:=60;n1:=50;m:=30;x:=hhvbars(h,n);qh:=ref(hhv(h,m),x+1);ql:=ref(llv(l,m),x+1);xg:ref(x,1)>50 and ref(llv(l,x),1)>ref((0.618*(qh-ql)+ql)*0.95,...