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.

How to get current Equity or credit line
 Post subject: How to get current Equity or credit line Post rating: 0   New post Posted: Tue 26 Jan, 2021, 10:38 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
Hello,

I need to calculate how max lot size I can open on the account in given moment.
So I need to receive current Credit line.
I use IAccount.getCreditLine() but there are often that this value is updated with quite a big lag.
There is a way to receive this information which is really up to date?


 
 Post subject: Re: How to get current Equity or credit line Post rating: 0   New post Posted: Tue 02 Feb, 2021, 12:30 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hello.

Strategy can make that calculations by itself, using the formula, equity and positions amount.
https://www.dukascopy.com/swiss/english ... ts/margin/

Regards.


 
 Post subject: Re: How to get current Equity or credit line Post rating: 0   New post Posted: Tue 02 Feb, 2021, 14:17 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
OK, but I need Equity to calculate it. But IAccount.getEquity() also is updated with a big lag (similar like IAccount.getCreditLine()).
So there is another possibility?


 
 Post subject: Re: How to get current Equity or credit line Post rating: 0   New post Posted: Sun 28 Mar, 2021, 23:20 
User avatar

User rating: 1
Joined: Fri 14 Sep, 2012, 02:25
Posts: 54
Location: New Zealand, Christchurch
history.getEquity() gives you your Account Equity last tick.


 

Jump to:  

  © 1998-2024 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