Hm.
My problem is that the orders isn't opening sometimes.
I don't understand why. I use BUYSTOP and SELLSTOP order types.
Example:
BUYSTOP order has open price greater or equal 1.4130.
when price is growing and reach 1.4130 - order doesn't open. And if price became more than 1.4130 and then falls below 1.4130 - order finally opens.
If I use slippage - orders open like I expect.(2 pips).
And there is a question: Why is this happening? And can I open STOP-orders without slippage at all?
I'm trying to open orders like this:
engine.submitOrder(getLabel(OrderCommand.SELLSTOP), this.instrument, IEngine.OrderCommand.SELLSTOP, curAmount, curPrice - threshold*2, slippage, stopLossPrice, 0, 0, "order2");
I thought that mit orders would help me.
P.S. Sorry for mistakes in the message. I'm only learning English. If someone can fix my mistakes and send me pm - it will be great

)