平空和开多的条件都是一致的,
平空:SELLSHORT(开多平空条件 and holding<0,50,LIMITR,close);
开多:BUY(开多平空条件 and holding=0,50,LIMITR,close);
图表程序化会出现这样的情况,开多的挂单已经成交,平空的挂单还未成交。
1.请教这样的问题应该怎样处理?
2.平空挂单后holding<0就失效了么?
谢谢!!!
平空:SELLSHORT(开多平空条件 and holding<0,50,LIMITR,close),orderqueue;
开多:BUY(开多平空条件 and holding=0,50,LIMITR,close),orderqueue;
如上面一样添加函数orderqueue