成交事件域的代码未执行,这个会是什么原因呢?和多点登录有关?
OnFill(FillRef ordFill)
{
FileAppend(p_log_path,"test onFill "+text(ordFill.fillPrice) + "of " + ordFill.accountId );
if (ordFill.orderId == lastorderids[ordFill.accountIndex] )
{
lastorderstatus[ordFill.accountIndex] =0;
FileAppend(p_log_path,"update to 0 by filled:"+text(ordFill.orderId) + "of " + ordFill.accountId );
}
}
你确认当前公式发了单子,账户关联也都正确?
没执行就是没驱动,那就意味着,没有当前公式、关联账户报出的委托单成交
你如果一定认为是成交了,那就无解了。
建议你写一个demo来证实一下,我们好转发给开发人员定位是什么问题