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

楼主 |
发表于 2025-11-24 15:14
|
显示全部楼层
另外,很奇怪的是本地预警交易里有开仓记录,帐户里也有持仓,但用tholding取仓位时,输出来tholding为0,是因为将输出语句放在开仓语句之前的原因吗?
if islastbar then DEBUGFILE('C:\TEST.TXT',stklabel&' 当前持仓='&numtostr(tholding,0)&' 前开价='&numtostr(tenterprice,2)&' 持仓均价='&numtostr(tavgenterprice,2)&' sxzzzq='&numtostr(sxzzzq,2)&' 当前价='&numtostr(c,2)& ' zsj='&numtostr(zsj,2),0);
输出结果显示:
2025-11-24 14:57:05.347 159575 当前持仓=0 前开价=1.33 持仓均价=0.00 sxzzzq=94.00 当前价=1.36 zsj=1.38
|
|