MQL4参考 账户信息 AccountFreeMarginMode

AccountFreeMarginMode

Returns the calculation mode of free margin allowed to open orders on the current account.

double  AccountFreeMarginMode();

Returned value

Calculation mode of free margin allowed to opened orders on the current account.

The calculation mode can take the following values:
0 - floating profit/loss is not used for calculation;
1 - both floating profit and loss on opened orders on the current account are used for free margin calculation;
2 - only profit value is used for calculation, the current loss on opened orders is not considered;
3 - only loss value is used for calculation, the current floating profit on opened orders is not considered.

Example:

  if(AccountFreeMarginMode()==0)
     Print("Floating Profit/Loss do not use.");