Account information questions.

 

Greetings,

Can anyone, please, help me to find answers to these questions:

1. What is the difference or relation between AccountFreeMargin and AccountMargin?

2. Is it true, that 'AccountProfit' and 'AccountEquity' are may have non zero value only for account that holds currently open positon?

3. Perhaps, the best question is: Where to find write-up on the account formulas relevant to MQL4?

Thank you in advance,

FX4EVER

 
1. I think it is: AccountFreeMargin() = AccountEquity() - AccountMargin()

2. yes and no; AccountEquity() = AccountBalance() - AccountProfit() [I think... not sure about swap]

3. I agree, that's a good question :-) Someone in the know might answer....
Reason: