Download MetaTrader 5

AccountFreeMarginCheck()

To add comments, please log in or register
Daniela Bluemel
789
Daniela Bluemel  

If i use

AccountFreeMargin()

AccountFreeMarginCheck(...) for the next order

the output is

100

370

How can it be higher after opening an order? Account Balance is 100 €. So the 100 from FreeMargin is ok but i don't understand the other function.

Alain Verleyen
Moderator
32858
Alain Verleyen  
Daniela Bluemel:

If i use

AccountFreeMargin()

AccountFreeMarginCheck(...) for the next order

the output is

100

370

How can it be higher after opening an order? Account Balance is 100 €. So the 100 from FreeMargin is ok but i don't understand the other function.

Probably because your margin is fully hedged.

Example : if you have a BUY order requiring 100 as margin, and you open a SELL order with same lot size, your total margin will be 0.

It's broker dependent.

Daniela Bluemel
789
Daniela Bluemel  
But it occurs on the first order....very strange. I only watched this in one symbol, all other work fine.
To add comments, please log in or register