I'm new to ninjascript and I have a problem that might seem basic to most people here, but I read the documentation and tried everything I could but wasn't able to figure this out.
I want to open an order and already tried with managed and unmanaged approach.
The orders are sent, I got a fill confirmation on the OnExecution event but the orders are not being opened in the platform...
This is a simulation account from optimusfutures.com using Rithmic.
Here's the code and the logs from the OnExecution event
managed
entryOrder = EnterLong(1, "Enter Long" + DateTime.Now.Second.ToString() + DateTime.Now.Millisecond.ToString());
log from the OnExecution event
Execution='NT-00000' Instrument='ES 06-12' Account='Sim101' Name='Enter Long9282' Exchange=Default Price=1374,5 Quantity=1 Market position=Long Commission=0 Order='NT-00000' Time='09/04/2012 08:31:40 p.m.'
Execution='NT-00001' Instrument='ES 06-12' Account='Sim101' Name='Exit on close' Exchange=Default Price=1356,75 Quantity=1 Market position=Short Commission=0 Order='NT-00001' Time='10/04/2012 08:15:00 p.m.'
-------------------------------------------------------------
unmanaged
entryOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Market, 1, 0, 0, "", "Enter Long"+ DateTime.Now.Second .ToString() + DateTime.Now.Millisecond.ToString() );
log from the OnExecution event
Execution='NT-00000' Instrument='ES 06-12' Account='Sim101' Name='Enter Long35512' Exchange=Default Price=1374,5 Quantity=1 Market position=Long Commission=0 Order='NT-00000' Time='09/04/2012 08:31:40 p.m.'
Execution='NT-00001' Instrument='ES 06-12' Account='Sim101' Name='Exit on close' Exchange=Default Price=1356,75 Quantity=1 Market position=Short Commission=0 Order='NT-00001' Time='10/04/2012 08:15:00 p.m.'
Any help is really appreciated. Thanks!
Comment