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.

Getting the Profit/Loss of a closed order
 Post subject: Getting the Profit/Loss of a closed order Post rating: 0   New post Posted: Sat 05 Nov, 2011, 12:25 

User rating: 0
Joined: Thu 06 Oct, 2011, 06:08
Posts: 5
Location: DE
Hi,

does anyone know a line that allows to get the profit/loss of a previously closed position?

engine.getOrder(Label).getProfitLossInPips only works for filled, created and open orders...


Thanks in advance!


 
 Post subject: Re: Getting the Profit/Loss of a closed order Post rating: 0   New post Posted: Mon 07 Nov, 2011, 08:53 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You have to retrieve the order from orders history, see:
https://www.dukascopy.com/wiki/index.php ... er_history


 

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