-- 实盘异常处理
//开仓操作
BUY(con1 and con3 AND HOLDING=0,1,marketr); //开多信号
BUYSHORT(con2 and con3 AND HOLDING=0,1,marketr); //开空信号
//做多平仓
if Close>enterprice+1 and holding>0 then sell(1,0,marketr);//
if Close<=enterprice+0.6 and holding>0 then sell(1,0,marketr);//
//做空平仓
if Close<enterprice-1 and holding<0 then sellshort(1,0,marketr);//
if Close>=enterprice+0.6 and holding<0 then sellshort(1,0,marketr);//
老师我用以上语句进行实盘,运行模式为固定时间间隔为一秒,为什么原来应该在同一跟K线平仓,可是实盘是在下一根K线平仓???