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.

confirming whether having position
 Post subject: confirming whether having position Post rating: 0   New post Posted: Sun 27 Mar, 2011, 16:50 

User rating: 0
Joined: Sun 20 Feb, 2011, 21:34
Posts: 10
Hi.

I need your help.

Can I confirm whether have or not position when set stop loss or take profit order exists?
Engine.getOrders(),or IOrder getState() makes it?

Hoping for your knowledge! :lol: :lol: :lol:


 
 Post subject: Re: confirming whether having position Post rating: 0   New post Posted: Mon 28 Mar, 2011, 07:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Use the following methods to check if stop loss/ take profit were set for the order:
https://www.dukascopy.com/client/javadoc ... LossPrice()
https://www.dukascopy.com/client/javadoc ... ofitPrice()

IEngine.getOrders() returns list of orders in IOrder.State.CREATED, IOrder.State.OPENED and IOrder.State.FILLED state.
IOrder.getState() returns the state of the order (Filled, Closed, etc.)


 

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