此主题相关图片如下:3.jpg
此主题相关图片如下:4.jpg
14点40这个不该触发的啊 该k线上已经触发并持仓了,并且触发条件用的是l最低价,一单触发不会变了,为什么后面又触发了一次?ps:这是仿真账号。
请别重复发帖~
didian:=llv(l,2);
gaodian:=hhv(h,2);
Kcj3:=ref(hhv(h,enterbars+1),1);
if h>=gaodian and holding=0 then buy(1,1,thisclose);
If holding>0 and ref(h>=gaodian,enterbars)=1 and ENTERBARS>=2 then zy:kcj3-5;
if holding>0 and ref(h>=gaodian,enterbars)=1 and enterbars>=2 and l-zy<-0.1
then sell(1,0,thisclose);
kKcj3:=ref(llv(l,enterbars+1),1);
if l<=didian and holding=0 then buyshort(1,1,thisclose);
If holding<0 and ref(l<=didian,enterbars)=1 and ENTERBARS>=2 then kzy:kkcj3+5;
if holding<0 and ref(l<=didian,enterbars)=1 and enterbars>=2 and h-kzy>0.1
then sellshort(1,0,thisclose);
这样一堆代码就能检测出问题,15分内会不定重复下单的,固定1秒间隔。