qb:="kdj.j"-ref("kdj.j",1)>30 and c/ref(c,1)>1.043 and"macd.macd">0 and"macd.dea">0;ls:=c/ref(c,1)>1.048 and c=h and between(forcast(v,4),0.2*forcast(v,12),2.1*forcast(v,12));lq:=filter...
{假设阴线幅度>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;