I get the following error message when I try to compile the java script:
"OrderCommand cannot be resolved"
The lines causing the error message are:
engine.submitOrder("Order label", Instrument.EURUSD, OrderCommand.BUY, dTradeAmount);
engine.submitOrder("order", Instrument.EURUSD, OrderCommand.BUY, 0.001, 0, 20, 1.2222, 0);
engine.submitOrder("myTrade_SELL", Instrument.EURUSD, OrderCommand.SELL, dTradeAmount, tick.getBid(), dSlippageAtOpen, dStopLoss, 0);
The first two are copied from your web page, since my one (the third line) threw the error. But all lines throw an error.
Why do I get this error? How do I submit the order correctly?
Many thanks,
|