Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Orders Cancelled with no message
 Post subject: Orders Cancelled with no message Post rating: 0   New post Posted: Mon 05 Apr, 2010, 16:42 

User rating: 0
Joined: Sun 28 Mar, 2010, 13:33
Posts: 6
Hi,

I'm submitting orders using the following code:

 IOrder lOrder = orderEngine.submitOrder(pComment, pInstrument, pType, lContracts, 0, 0, lStopLoss, 0);


... sometimes nothing appears to happen.

By using print statements I've figured out the order is being set to IOrder.State.Canceled, but no message is displayed in the terminal.


Is this something to do with the slippage parameter being 0? I thought the order would just get executed at whatever price, given the price parameter is also 0?


Thanks,

David


 
 Post subject: Re: Orders Cancelled with no message Post rating: 0   New post Posted: Wed 07 Apr, 2010, 15:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi David,
are you able to figure out some pattern for such a system behavior?


 
 Post subject: Re: Orders Cancelled with no message Post rating: 0   New post Posted: Wed 07 Apr, 2010, 22:51 

User rating: 0
Joined: Sun 28 Mar, 2010, 13:33
Posts: 6
lol!

Given months maybe, but I'd actually like to be convinced the platform is robust so I can open a live acount ASAP...


 
 Post subject: Re: Orders Cancelled with no message Post rating: 0   New post Posted: Thu 08 Apr, 2010, 08:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
David,
Quote:
Is this something to do with the slippage parameter being 0? I thought the order would just get executed at whatever price, given the price parameter is also 0?

If you are submitting such an order it means that you are submitting an order for current price on the market (price that you see in the JForex). If you are setting a slippage to 0, it means that you want to submit your order exactly for that price. Price at the market changes several times in a second. It is possible that at the moment, when your order has been sent to server for executing, price on the market won't be available. So the order will be rejected.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com