等级: 专业版
- 注册:
- 2024-9-22
- 曾用名:
|
这个问题前面问过几次,所以设置选项这些都做了,除了动态品种这个看不明白什么意思,该怎么设置。
代码前半部分正确执行,记入了文件。但是开盘前读取挂单,没动作。另外代码里面是CTR是根据K线计算的变量,在2100开盘之间能读到吗?
IF DYNAINFO(207)>150000 AND DYNAINFO(207)<150500 THEN //盘后记录未成交委托
BEGIN
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'UBQ', 'UBQ',TGLOBALSUBMITEX(1,'','',0));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'UBP', 'UBP',TORDERPRICE(1,1));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'USQ', 'USQ',TGLOBALSUBMITEX(3,'','',0));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'USP', 'USP',TORDERPRICE(3,1));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'CUBQ', 'CUBQ',TGLOBALSUBMITEX(2,'','',0));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'CUBP', 'CUBP',TORDERPRICE(2,1));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'CUSQ', 'CUSQ',TGLOBALSUBMITEX(4,'','',0));
WRITEINIFILE('C:\DAILI_'+'.ini',STKLABEL+'CUSP', 'CUSP',TORDERPRICE(4,1));
END
IF DYNAINFO(207)>205500 AND DYNAINFO(207)<205600 AND CTR3=CTR THEN //开盘重新挂单
BEGIN
TBUY(GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'UBQ','UBQ')>=1,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'UBQ','UBQ'), LMT,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'UBP','UBP'));
TBUYSHORT(GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'USQ','USQ')>=1,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'USQ','USQ'), LMT,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'USP','USP'));
TSELL(GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'U','CUBQ')>=1,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'CUBQ','CUBQ'), LMT,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'CUBP','CUBP'));
TBUYSHORT(GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'CUSQ','CUSQ')>=1,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'CUSQ','CUSQ'), LMT,GETINIFILE('C:\DAILI_'+'.ini',STKLABEL +'CUSP','CUSP'));
END
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?
x
|