请教自动开多开空到尾盘平掉对锁单如何写?就是开盘后按信号开多开空,尾盘平掉同等的多空单 比方7个空5个多,留下2空单其余平掉。
//收盘前平仓
sell(time>145800 and holding>0,0,thisclose);
sellshort(time>145800 and holding<0,0,thisclose);
都平掉了
应该可以,委托数额上动一下就行了。
//收盘前平仓
sell(time>145800 and holding>0,0,thisclose);
sellshort(time>145800 and holding<0,0,thisclose);
都平掉了
不想都平掉,只想平掉产生的对锁单
用于简单图表交易