aa1:=filter(low=llv(low,13),8);aa2:=if(llv(low,3)=llv(low,13) and close<ref((high+low)/2,1),max(ref(llv(low,12),barslast(aa1)+1)-low,0),0);aa3:=ema(aa2,3)*3;aa4:=sumbars(aa3>0,21);aa5:=sum(aa3,aa4)/21;aa6:=ref(aa3,1)=hhv(aa3,3) and ref(aa3,1)>aa5*3 and count(close/ref(close,1)<0.9025,8)=0 and c>o and llv(low,3)/hhv(high,18)<0.88;反转:=filter(aa6,5),color0000ff;t:=stickline(close,0,aa3,8,1),coloryellow;t1:stickline(反转,0,aa3,8,0),colorred; 20210311
这样就可以: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...
t1:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,30) and ma(c,30)>ma(c,60) and ma(c,60>ma(c,120));t2:=count(c>ma(c,5),3)=3;t3:=count(((c/ref(c,1)-1)*100)>8,10)>0;t4:=c