
等级: 专业版
- 注册:
- 2022-1-11
- 曾用名:
|
以下开仓语句,为什么会有超仓发生?平仓还在挂单,反手单就下单成交了?这种情况需要加顺序执行函数吗?
if condkd then begin
tsellshort (tsellholding(1)>0,tsellholding(1),lmt,30close2+zxj); //平空
tbuy(tholding=0 and tbuyholding(1)=0 and tbc and tm,ss,lmt,30open+zxj); //开多
end
if condkk then begin
tsell(tbuyholding(1)>0,tbuyholding(1),lmt,30open2-zxj); //平多
tbuyshort(tholding=0 and tsellholding(1)=0 and tbc and tm,ss,lmt,30open-zxj); //开空
end
补充内容 (2022-7-26 13:56):
花生:13:40:00挂单卖出单平仓,13:40:01反手卖出单成交。 账户里的1手多单还在 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?
x
|