Account margin vs Account margin free?

 

Maybe a stupid question but what is ACCOUNT_MARGIN supposed to be as opposed to ACCOUNT_MARGIN_FREE?

If I print this:

AccountInfoDouble(ACCOUNT_MARGIN);

I get 0.0 returned back from the broker.


If I print this:

AccountInfoDouble(ACCOUNT_MARGIN_FREE);

I retrieve my current free margin correctly. 

is "ACCOUNT_MARGIN" used on some brokers and not on others?

 
Conor Mcnamara:

Maybe a stupid question but what is ACCOUNT_MARGIN supposed to be as opposed to ACCOUNT_MARGIN_FREE?

It should return the margin used of course.

If I print this:

I get 0.0 returned back from the broker.

Never seen that. It works correctly for me.

What build ? What broker ?

 
Alain Verleyen #:

It should return the margin used of course.

Never seen that. It works correctly for me.

What build ? What broker ?

I'm on build 4463 right now, and broker is IC Markets. It's nothing big though, the ACCOUNT_MARGIN_FREE works fine to give me the margin I have on the account

 
Conor Mcnamara #:

I'm on build 4463 right now, and broker is IC Markets. It's nothing big though, the ACCOUNT_MARGIN_FREE works fine to give me the margin I have on the account

Maybe an issue with the beta 4463. Current one is 4468.