Continuing to evaluate, debug and watch systems detail, I found out this non-sense trade ( fortunately in the Sim101 account ), but I'd like to post it here in order to know if it's cause some bug in the simulation account Sim101, or cause it could really happen due to technical dynamics.
It's simple: My Strategy submit a buy order at 8:36:31, executing it at 1.1406'5. The weird thing is the Ask at that exact time was at 1.1404, even before it wasn't ever at 1.1406'5. The order statement is:
lEntryOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Limit, (quantity-Position.Quantity), (GetCurrentBid()+TickSize), 0, "", "LONG");
so:
What is the reason for this trade if it is filled with a limit order?
I've attached two charts, setting them to a timeframe of one tick in order to visualize it better
Keeping forward for answers here
Thanks
Comment