
等级: 标准版
- 注册:
- 2024-7-17
- 曾用名:
|

楼主 |
发表于 2024-7-24 16:53
|
显示全部楼层
老师,我代码是这样写的,离收盘前5分钟平仓,但实际上,日志显示却是14:59:43才下这条指令,辛苦老师看一下是什么情况?
if TIMETOT0(time)>TIMETOT0(closetime(4))-5*60 then sell(1,holding,marketr);//收盘前5分钟平仓
if TIMETOT0(time)>TIMETOT0(closetime(4))-5*60 then sellshort(1,holding,marketr);//收盘前5分钟平仓
另外,我在系统内已经设置了收盘前5分钟强制清仓,如下图,两者会冲突吗?
if TIMETOT0(time)>TIMETOT0(closetime(4))-5*60 then sell(1,holding,marketr);//收盘前5分钟平仓
if TIMETOT0(time)>TIMETOT0(closetime(4))-5*60 then sellshort(1,holding,marketr);//收盘前5分钟平仓 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?
x
|