不理解你的第二个条件(收盘价涨幅在1.5%以上)是n天前出现还是今日出现,如果是今日出现:syx:=syx:h/c>1.03 and (h-max(c,o))>(max(c,o)-l)*2;ref(syx,n)and c/ref(c,1)>1.015;第二个条件(收盘价涨幅在1.5%以上)n天前出现:syx:=syx:h/c>1.03 and (h-max(c,o))>(max(c,o)-l)*2 and c/ref(c,1)>1.015;ref(syx,n); 20210311
n:=20;n1:=15;t1:=ref(hhv(h,n)/llv(l,n),1)(1+n1/100)and barscount(c)>n;xg:ref(t1,2)=1 and ref(c/o>1.07,1)=1 and o>ref(c,1)and o=l and v>ref(v,1);n是时间 n1是横盘的幅度, 随便设置的,你需要自己决定参数范围
t1:=c(c,20)*1.1 and c>o;a1:=(h-max(c,o));a2:=h-l;t2:=a1/ref(c,1)*100>=2 and a1*2>=a2;t3:=v>ref(v,1);xg:t1 and t2 and t3;参考资料:http://tieba.baidu.com/f?kw=%b9%c9%c6%b1%b9%ab%ca%bd%d7%a8%bc%d...