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.

History orders after merging
 Post subject: History orders after merging Post rating: 0   New post Posted: Wed 26 Mar, 2014, 21:12 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Consider merging of two opposite and equal positions. The result amount sum is zero so result order has IOrder.State.CLOSED.
After that there are three historical orders: a long position, a short one and a result order with zero amount.
After getting these orders from history by the getOrdersHistory method one can see the profit of each of these orders is zero.

How can one calculate the profit of such operations from the order history?


 
 Post subject: Re: History orders after merging Post rating: 0   New post Posted: Mon 31 Mar, 2014, 07:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
hebasto wrote:
How can one calculate the profit of such operations from the order history?
It should be in the resulting merged order. With JForex-API 3.0 one will be able to retrieve the merged-to order.


 
 Post subject: Re: History orders after merging Post rating: 0   New post Posted: Thu 12 Jun, 2014, 15:22 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
So is this a bug which will be fixed, or a missing feature?

Cross referencing to my post on this issue:
viewtopic.php?f=65&t=51372&p=80017#p80017

HyperScalper


 
 Post subject: Re: History orders after merging Post rating: 0   New post Posted: Fri 13 Jun, 2014, 12:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Rather a missing feature.


 

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