Ive programmed an order taking interface.
Ive tested a market order from onBar and onTick with the following code.
myEngine.submitOrder("myTrade", myInstrument, IEngine.OrderCommand.BUY, lotValue*0.001, 0);
Works fine.
Im calling the method buyMarket() with an ActionListener on a jButton.
public void buyMarket(){
debug("test");
}
This works fine, the method is being called on click of the button, and prints my debug message.
Now if I change the buyMarket() method to include a market order.
public void buyMarket(){
myEngine.submitOrder("myTrade", myInstrument, IEngine.OrderCommand.BUY, lotValue*0.001, 0);
}
I get an unhandled Exception. No real error message per se, just unhandled exception.
What gives???
