Description Usage Value Author(s) References See Also
This function is useful for obtaining MT5's account information.
1 |
Data.frame [1x11] is returned, with follow informations:
Company {character}: company name.
Acc_server {character}: server name that your MT5 is connected to.
Acc_number {int}: is the account login as well.
Balance {numeric}: same used in MT5 Trade tab.
Equity {numeric}: is the sum of Balance and current Profit.
Profit {numeric}: sum of all open profit/loss positions.
Credit {numeric}: same used in MT5 Trade tab.
Margin {numeric}: is the amount of money necessary to cover your possible losses during margin trading.
Margin_Free {numeric}: is the amount availabe to open next trades. Free margin equals equity minus margin.
Account_type {int}:
0: ACCOUNT_TRADE_MODE_REAL (real account)
1: ACCOUNT_TRADE_MODE_DEMO (demo account)
2: ACCOUNT_TRADE_MODE_CONTEST
Margin_type {int}:
0: ACCOUNT_MARGIN_MODE_RETAIL_NETTING (Netting)
1: ACCOUNT_MARGIN_MODE_EXCHANGE (Exchange)
2: ACCOUNT_MARGIN_MODE_RETAIL_HEDGING (Hedging)
Guilherme Kinzel, guikinzel@gmail.com
https://www.mql5.com/en/docs/constants/environment_state/accountinformation
https://hercules.finance/faq/what-is-balance-equity-margin-and-free-margin-and-margin-call/
MT5.ShowPositions(), MT5.ShowOrders()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.