最好依据公式:diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);a0:=cross(diff,dea);a:=a0 and diff<0;ft:=barslast(a);b:=count(a0,ft);第二个金叉:diff>0 and dea>0 and a0 and b<2;编写周日同时二次金叉的公式。
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...