微信扫一扫,快速登录
39
158
等级: 专业版
close_mkt1:=remainingtime(closetime1)<=nmin3*
60
and
remainingtime(closetime1)>
0
;
close_mkt2:=remainingtime(closetime4)<=nmin3*
if
(close_mkt1
or
close_mkt2)
then
begin
tcancelex
(
1
,
''
);
tsell
tbuyholdingex
),
mkt
tsellshort
tsellholdingex
end
remain_order:=
tisremainex
)>
remain_order
tholding2
>
您需要 登录 才可以下载或查看,没有帐号?
举报
2
5164
等级: 超级版主
资深技术05 发表于 2025-4-11 09:26 下单语句里直接判断下可用持仓就行了。 即tbuyholdingex('','',1)>0 以及tsellholdingex('','',1)>0 即可 ...
//尾盘平仓
close_mkt1
close_mkt2
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|上海金之塔信息技术有限公司 ( 沪ICP备13035422号 )
GMT+8, 2025-7-20 10:33 , Processed in 0.100524 second(s), 23 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.