I have a strategy that at some point trigger an entry limit order like this one
IDEntry = EnterShortLimit(BarIndex, true, Quantity, LimitPrice, EntryName);
Ninja get market data with IQFeed connection and place orders with Interactive Brokers platform connection.
After submit, my strategy trace the order through custom OnOrderUpdate and OnExecution functions untils I get the filled price (using Instrument.MasterInstrument.Round2TickSize(order.A vgFillPrice)).
Then I can do my calculation to trigger the exit using market data related to the filled price I have read.
The problem is that yesterday happened 3 times that during order execution ninja has changed the execution price to an arbitrary fixed price reporting this price as fill price of the executed order, while IB platform has received the correct entry price and has executed the entry at the right price. This differences caused the strategy to make incorrect calculation resulting in money loss on that market position.
I have found in ninja log an entry like this one :
first issue occourrence
12:51:13 Default execution price '10138.5' was set to '10160' price (00011d8a.55f66ae7.01.01) second issue occourrence
12:55:58 Default execution price '10150.5' was set to '10160' price (00011d8a.55f66b0c.01.01) third issue occourrence
15:50:22 Default execution price '10102.5' was set to '10160' price (00011d8a.55f67575.01.01)
WHY???
Why ninja has made this change? Why with that fixed price (10160)?
Ther is no other related errors, the market data were normal (no bad data, no unexpected price gap or acceleration), why on only some trade (3 trade was correct, 3 with thw issue)?
Why now?
I have been working on this strategy since 2 years and I have made a lot of testing without having this issue.
Now, after finishing my testing and going real I have had this bad issue.
I have made some search on the web without finding any information about this kind of log entry for ninja.
Please give me support as soon as possible...
I send you attached the log and trace file.
Thank in advance.
Regards
Renato B.

Comment