Support wrote:
Hi,
Quote:
Is there any way I can place market stop order?
Yes, any IEngine.submitOrder, but with slippage -1
I tried buy market order by using -1 as slippage still it takes default slippage 0.0005
Thanks but it is not working.
This is a sample code I am using:
engine.submitOrder(label, instrument, IEngine.OrderCommand.BUY, amount, 0, -1);
This is a message I am getting:
05:33:25 Order FILLED at 0.98591 CAD (#51632803 BUY 0.01 mil. AUD/CAD @ MKT MAX SLIPPAGE 0.0005) - Position #180345AUD/CAD
As you said there should be no slippage but still it takes slippage as 0.0005.
If I Buy using JFOREX platform directly without using slippage control, below are the messages I get:
2010-10-06 05:41:59 Order FILLED at 0.98592 CAD (#51637371 BUY 0.01 mil. AUD/CAD @ MKT) - Position #180345AUD/CAD
2010-10-06 05:43:24 Order BUY 10000 AUD/CAD @ MKT is sent at 2010-10-06 05:43:24.695 GMT manually
I want to place order exactly same way as JFOREX platform. Are there any APIs used only by JFOREX platform and not available to JOFOREX api programmers??