Account Info

From Boolean Trader
Jump to: navigation, search

Description

The Account Info function provides information like balance, equity, available margin and more. But unlike the Account function you can call the information specifically.

Syntax



Inputs

eaid
The EA ID of your Expert Advisor.

fieldName
The account information you want to call: LOGIN, TRADE_MODE, LEVERAGE, LIMIT_ORDERS, MARGIN_SO_MODE, TRADE_ALLOWED, TRADE_EXPERT, BALANCE, CREDIT, PROFIT, EQUITY, MARGIN, MARGIN_FREE, MARGIN_SO_CALL, MARGIN_SO_SO, NAME, SERVER, CURRENCY, COMPANY.

Outputs

ACCOUNT_INFO

The requested information according to your fieldName.

Example Calculations

eaid fieldName RESULT
"tester" "EQUITY" It will return the value of your equity for the tester EA.
"tester" "PROFIT" It will return the value of your profit for the tester EA.
"tester" "LEVERAGE" It will return the value of your leverage for the tester EA.
"tester" "MARGIN_FREE" It will return the value of your free margin for the tester EA.