a:=ref(every(c/ref(c,1)>1,3),1);b:=asr<ref(asr,1) and scr>ref(scr,1) and c/ref(c,1)>1.03 and dyna**(37)>0.03;a and b and ref(c,1)/ref(c,4)<1.08;测试通过!希望能够帮助你!
{假设阴线幅度>7%,根据需要修改} dyx:=(c-o)/ref(c,1)*100;days:=barslast(dyx);mid:=(ref(c,days)+ref(o,days))/2;欲反包:days>1 and days< 5 and c >mid and count(c>mid,days)=1;
zt1:=c>=intpart(ref(c,1)*(1.0985)*100)/100;ts1:=barslast(zt1);zd1:=c>ma(c,10) and l<ma(c,10)*1.005 and l>=ma(c,10)*0.995; 涨停回调:range(ts1,2,10) and count(c<ref(c,1),ts1-1)>=ts1-2 and ...