|
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 |
|
janjjj
|
| Post subject: How to get current Equity or credit line |
Post rating: 0
|
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?
|
|
|
|
|
 |
|
vadim_berezhnoj
|
| Post subject: Re: How to get current Equity or credit line |
Post rating: 0
|
Posted: Tue 02 Feb, 2021, 12:30
|
|
| Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
|
|
|
|
 |
|
janjjj
|
| Post subject: Re: How to get current Equity or credit line |
Post rating: 0
|
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?
|
|
|
|
|
 |
|
fprophet
|
| Post subject: Re: How to get current Equity or credit line |
Post rating: 0
|
Posted: Sun 28 Mar, 2021, 23:20
|
|
User rating: 1
Joined: Fri 14 Sep, 2012, 02:25 Posts: 57 Location: New Zealand, Christchurch
|
|
history.getEquity() gives you your Account Equity last tick.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|