
等级: 标准版
- 注册:
- 2023-2-16
- 曾用名:
|

楼主 |
发表于 2025-10-10 15:36
|
显示全部楼层
debugfile('C:\stockAlertInfo3\' & stklabel &zhsx & '.txt',numtostr(date,0) & ' ' & numtostr(time,0) &' [账号='& 账号[i]& ' 总仓位='& numtostr(总仓位,4) & ' 持仓手数='& numtostr(holdingvar,0) &']'
&' [平多仓位='& numtostr(pccwd,4) & ' pdcwtj='& numtostr(pdcwtj,0) & ' holdingvar0='& numtostr(holdingvar0,0) &']'
&']'
&' 平多信号='& numtostr(平多信号[i],0) &']'
& ' 动态权益='& numtostr(TACCOUNT2(6,账号[i]),2) & ' 当前可用资金='& numtostr(TACCOUNT2(19,账号[i]),2) & ']'
& ' dtbl='& numtostr(dtbl,4) & ' wtselltj='& numtostr(wtselltj,0) & ' 委托卖单数量='& numtostr(委托卖单数量,0) &']'
& ' 委托卖单价格='& numtostr(委托卖单价格,4) & ' 委托买单价格='& numtostr(委托买单价格,0) & ' 委托买单数量='& numtostr(委托买单数量,0) &']'
& ' 开多信号价格='& numtostr(开多信号价格,4) & ' 平多信号价格='& numtostr(平多信号价格,2) & ' wtbuytj='& numtostr(wtbuytj,0) &']'
&' [开多信号='& numtostr(开多信号[i],4) & ' strleft_1='& numtostr(strleft_1,0) & ' strleft_2='& numtostr(strleft_2,0) &']'
&']'
&' strleft_3='& numtostr(strleft_3,0) &']'
& ' strleft_4='& numtostr(strleft_4,2) & ' strright_1='& numtostr(strright_1,0) & ' strright_2='& numtostr(strright_2,0) &']'
&']'
&' strright_3='& numtostr(strright_3,0) &']'
& ' strright_4='& numtostr(strright_4,2) & ' kd1='& numtostr(kd1,2) & ' kd2='& numtostr(kd2,2) & ' pd1='& numtostr(pd1,2) & ' pd2='& numtostr(pd2,2) & ']'
& ' 开多信号1='& numtostr(开多信号1,2) & ' kcss_2='& numtostr(kcss_2,2) & ' xdssd='& numtostr(xdssd,2) & ']'
& ' 开多仓位='& numtostr(开多仓位[i],2) & ' kcss_2='& numtostr(kcss_2,2) & ' xdssd1='& numtostr(xdssd1,2) & ']'
& ' pdxdssd1='& numtostr(pdxdssd1,2) & ' kcss_2='& numtostr(kcss_2,2) & ' pcss_2='& numtostr(pcss_2,2) & ' pcss='& numtostr(pcss,2) & ' pcss_1='& numtostr(pcss_1,2) & ' dtbzj='& numtostr(dtbzj,2) &' wtselltjcd='& numtostr(wtselltjcd,2) & ' pdzxdw='& numtostr(pdzxdw,2) & ' iscd='& numtostr(iscd,0) &']'
,0);
end
IF 开多信号[1] THEN BEGIN
开多信号价格:=TRIMPRICE(开多信号价格,'');
// tcancelex(1,1,账号[1],stklabel);//先撤单
TBUY(1,开多仓位[1],LMT,开多信号价格,0,账号[1] ),IGNORECHECKPRICE; //开多单
// kdcs:=kdcs+1;
END
IF ( 平多信号[1]) THEN BEGIN
平多信号价格:=TRIMPRICE(平多信号价格,'');
//tcancelex(1,2,账号[1],stklabel);//先撤单
TSELL(1,平多仓位[1],LMT,平多信号价格,0,账号[1] ),IGNORECHECKPRICE; //平多单
END
|
|