aa:=barslast(time=100000);cc:=ref(hhv(c,0),aa+1);vv:=ref(hhv(v,0),aa+1);zf:=cc/dyna**(3)<1.05;xg10:=cross(c,cc) and v>vv and zf;aa1:=barslast(time=110000);cc1:=ref(hhv(c,0),aa1+1);vv1:=ref(hhv(v...
这样就可以:ma05:=ma(c,5);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;三拾日乖离率:=(c-ma30)/ma30*100;买入:count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 a...
用这个就行了:a1:=(dvol/c)/2;a2:=sum(if(a1>100 and close>ref(close,1),a1,0),0);a3:=sum(if(a1>100 and close<ref(close,1),a1,0),0);a4:=sum(if(a1<100 and close>ref(close,1),a1,0),0);a5:=sum(if...