My code calls the ninjatrader.client.Command() function passing the 'PLACE' command.
During testing all worked well. I was specifying the Sim101 account and successfully getting data, opening and closing orders.
When I did some testing using the Playback101 connection/account, the PLACE command started silently failing.
This was showing up in the trace output:
ERROR: OIF, 'PLACE;Sim101;YM 12-21;BUY;3;LIMIT;34653;0;DAY;;33A38C66E50D4BB289A883 86CC30A63A;;' account does not exist 'Sim101'
My problem is that I had forgotten to specify the Playback101 in the account string (it was still Sim101).
My question is why did the call to Command not return a negative return code ?
The call to 'Command' clearly failed as the trace output indicates with the ERROR line. The log tab also showed this error.
Can the Command be fixed to return a negative code so that calling code can take appropriate action?
Thanks,
Gary
Comment