这是今天碰到的问题:
账户断开,自动再连通后,Tholding和Tholding2显示为0,因为此时正好有开仓信号,结果发出一个开仓预警。下面是当时用debugfile记录的内容:
2010-09-20 12:08:07.403 =======
2010-09-20 12:08:07.450 Time:113000.000 cTime:120807.000
2010-09-20 12:08:07.494 O:2870.6 H:2891.8 L:2867.6 C:2889.0 DY28:2889.0 DY34:2889.8
2010-09-20 12:08:07.539 HV12:2881.40 LV12:2848.00 THV2:2865.59 TLV2:2867.02 XHV:2854.37 XLV:2866.43
2010-09-20 12:08:07.582 SPK:0.0 BPK:1.0 TSubmit(0):0.00
2010-09-20 12:08:07.627 LSL:2854.2 SSL:2886.4 SL:1.0 MS:9.0 SL:1.0
2010-09-20 12:08:07.670 TH:0.0 TodayTH:0.0 TH2:0.0
2010-09-20 12:08:07.713 TAP:0.0 TEP:2863.2
2010-09-20 12:08:07.765 EX-CT:0.0 CT:1.0
2010-09-20 12:08:08.370 =======
2010-09-20 12:08:08.411 Time:113000.000 cTime:120808.000
2010-09-20 12:08:08.452 O:2870.6 H:2891.8 L:2867.6 C:2889.0 DY28:2889.0 DY34:2889.8
2010-09-20 12:08:08.493 HV12:2881.40 LV12:2848.00 THV2:2865.59 TLV2:2867.02 XHV:2854.37 XLV:2866.43
2010-09-20 12:08:08.540 SPK:0.0 BPK:1.0 TSubmit(0):0.00
2010-09-20 12:08:08.581 LSL:2854.2 SSL:2886.4 SL:1.0 MS:9.0 SL:1.0
2010-09-20 12:08:08.626 TH:0.0 TodayTH:0.0 TH2:0.0
2010-09-20 12:08:08.668 TAP:0.0 TEP:2863.2
在08:05秒是出现断开,但立刻又连上了:
2010-09-20 12:08:05
00560031 : 已断开
出现上述情况,应该是在账户连上之后。今天正好发生在收盘期间,但前两天在开盘期间也发生过,当时以为是别的原因。
请查一下,是否可以改进。