平多:=aspect=1;
平空:=aspect=0;
开多条件:=aspect=0 and Jtrend=1;
开空条件:=aspect=1 and Jtrend=-1;
if holding>0 and 平多 then sell(1,SS,marketr);
if holding<0 and 平空 then sellshort(1,SS,marketr);
if holding<=0 and 开多条件 then buy(1,SS,marketr);
if holding>=0 and 开空条件 then buyshort(1,SS,marketr);
遇到这样的问题,开空后对应平空,当在次符合开多的时候,不在当K出现开多信号,反而出现在前面的平空位置出现开多。
如何解决在次开多代码?