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.

On message order rejection and cancellation of order
 Post subject: On message order rejection and cancellation of order Post rating: 0   New post Posted: Wed 18 Jul, 2012, 07:34 

User rating: 0
Joined: Wed 18 Jul, 2012, 07:26
Posts: 4
Location: India, Madarpur
Hello Support,

I am new to java and also jforex programming. I am building one strategy and need your help.

Can you help me to code following criteria :

"For stop/Limit order, If slippage is 0 and on message, order gets rejected, then I want to cancel that order."

Please help me to code above scenerio.

I appriciate your help inn this regard.


 
 Post subject: Re: On message order rejection and cancellation of order Post rating: 0   New post Posted: Wed 18 Jul, 2012, 07:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You cancel order by calling IOrder.close() on an OPENED order.
For possible order state transitions and corresponding messages see:
https://www.dukascopy.com/wiki/#Order_state/Conditional_order_states_diagram
For order state management see:
https://www.dukascopy.com/wiki/#Manage_Order_State


 

Jump to:  

  © 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