
等级: 专业版
- 注册:
- 2021-7-7
- 曾用名:
|

楼主 |
发表于 2022-8-18 16:51
|
显示全部楼层
是这样的—— 应该没问题啊
//15点2分市价卖出逆回购
可用资金:TACCOUNT(6)-TACCOUNT(28);
hgss:1000*FLOOR(可用资金/1000),coloryellow;//必须折算成1000的整数倍
if hgss<>0 and time=150200 then tbuyshort(1,hgss,lmt,c-0.01,0,'','131810');//现价
补充内容 (2022-8-18 16:52):
改成这样可以吧:
//15点2分市价卖出逆回购
可用资金:TACCOUNT(6)-TACCOUNT(28);
hgss:1000*FLOOR(可用资金/1000),coloryellow;//必须折算成1000的整数倍
if hgss<>0 and 可用资金>1000 and time=150200 then tbuyshort(1,hgss,lmt,c-0.01,0,'','131810');//现价
补充内容 (2022-8-18 16:57):
最终改为:
可用资金:time>=150000 and TACCOUNT(6)-TACCOUNT(28);
if 可用资金>1000 then
ss:1000*FLOOR(可用资金/1000),coloryellow;//必须折算成1000的整数倍
if ss<>0 and time=150200 then tbuyshort(1,ss,lmt,c-0.01,0,'','131810');//现价
|
|