Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2986 Problem of history.getEquity()
 Post subject: JFOREX-2986 Problem of history.getEquity() Post rating: 0   New post Posted: Fri 25 Feb, 2011, 12:27 

User rating: 0
Joined: Tue 21 Sep, 2010, 12:52
Posts: 6
I use the following code to check the account balance:
this.console.getOut().println("History Equity= " + this.history.getEquity());
this.console.getOut().println("Account Equity= " + this.account.getEquity());


The result is different. I understand the "account.getEquity()" update every 5 sec. But shouldn't be different so much, right? Is it an another bug?

Screenshot attached.


Attachments:
File comment: Screen shot
AEscreenshot.jpg [95.88 KiB]
Downloaded 545 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: JFOREX-2986 Problem of history.getEquity() Post rating: 0   New post Posted: Wed 14 Sep, 2011, 16:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide us with a more information about your environment. Does it happen (such huge difference) within long period?

In fact, a history equity is actual for the last tick and can differ from the account.equity due to the difference between actual/last tick price and price on the moment of calculation of the account equity (the Profit & Losses for all open orders).
In addition, the history equity takes also into account so-called "close correction" - the Profit&Loss for the just closed orders - the orders, which had been closed between account equity updates.

In general, this situation is exceptional : the instrument price had been change quite significantly and some orders have been closed between account.equity and history.equity calculations.


 

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