Support Board
Date/Time: Wed, 12 Feb 2025 19:01:05 +0000
Post From: AutoTrade Replay Back Test and s_SCTradeOrder
[2020-11-01 08:08:17] |
gfx2trade - Posts: 48 |
Hi, Thks for your prompt answer. I understand that it may be quite some work to understand where the issue comes from, but to acknowledge that the issue exists is quite straight forward. And clearly, I do think there is a bug and it seems now obvious as you wrote "because they become removed from the order list." And that's clearly the issue. When an open order is closed as price reaches SL or TP level, it remains in the sc.GetOrderByOrderID list for a while. To me it should be removed immediately so that I can obtain the same result with the in-house function as I would with : s_SCPositionData PositionData; posQty = PositionData.PositionQuantity; Hope you can identify and fix the issue. Best regards, gfx |