I am currently using the dll interface to place orders into NinjaTrader, that uses Interactive Brokers in Demo mode to simulate an actuall transaction. I generate an unique order id by using NinjaTraders supplied function and use that when I place my order.
But as you can see in the log below, the supplied order id isn't used when the order is placed. I tried to poke around NTs database to see if my supplied value was stored somewhere but couldn't find it anywhere.
Wonder if there might be anything wrong with my function calls, maybe some error have eluded me.
The purpose of all this is that I want to be able to start up NinjaTrader, place some orders, and then shut it down. After a while I would like to manually collect information about all the orders by either query NT or query its database.
<example log>
01-30 08:15:44;Order;Order='76a0f2a0a0b842629ad6ae8a5677 1a55/DU15077' Name='' New State=PendingSubmit Instrument='SHBA' Action=Buy Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error='';
2007-01-30 08:15:43;Order;Submitting order without strategy...;
2007-01-30 08:15:43;ATI;AT, 'PLACE;DU15077;SHB.A;BUY;1;MARKET;0;0;GTC;;FD9AAB2 E816E4702ACC6DF19E05707D3;;' processing ;
Comment