MQL4 Account Information

Overview

Provides functions to retrieve parameters of the current trading account.

Functions

  • **AccountInfoDouble(property_id)**: Returns a double value for a specified account property.
  • **AccountInfoInteger(property_id)**: Returns an integer (bool, int, or long) value for a specified account property.
  • **AccountInfoString(property_id)**: Returns a string value for a specified account property.
  • **AccountBalance()**: Returns the current account balance.
  • **AccountCredit()**: Returns the current account credit.
  • **AccountCompany()**: Returns the name of the brokerage company.
  • **AccountCurrency()**: Returns the currency name of the account.
  • **AccountEquity()**: Returns the current account equity.
  • **AccountFreeMargin()**: Returns the current free margin.
  • **AccountFreeMarginCheck(order_type, symbol, volume)**: Returns the free margin after opening a specified position.
  • **AccountFreeMarginMode()**: Returns the calculation mode for free margin.
  • **AccountLeverage()**: Returns the current account leverage.
  • **AccountMargin()**: Returns the current account margin.
  • **AccountName()**: Returns the current account name.
  • **AccountNumber()**: Returns the current account number.
  • **AccountProfit()**: Returns the current account profit.
  • **AccountServer()**: Returns the connected server name.
  • **AccountStopoutLevel()**: Returns the Stop Out level value.
  • **AccountStopoutMode()**: Returns the calculation mode for the Stop Out level.
  • Data Types

  • **Double**: AccountInfoDouble returns double.
  • **Integer**: AccountInfoInteger returns bool, int, or long.
  • **String**: AccountInfoString returns string.
  • Platform Support

  • MQL4 Language
  • Related Resources

  • [MQL4 Help (English CHM)](https://www.mql5.com/files/docs/mql4.chm)
  • [MQL4 Help (Russian CHM)](https://www.mql5.com/files/docs/mql4_russian.chm)