mt5-manager/docs/publish/code/07_cpp.txt
11 lines
504 B
Text
//--- Состояние терминала
const bool connected = (bool)TerminalInfoInteger(TERMINAL_CONNECTED);
const int ping_last = (int)TerminalInfoInteger(TERMINAL_PING_LAST);
//--- Состояние торгового счёта
const long login = AccountInfoInteger(ACCOUNT_LOGIN);
const double balance = AccountInfoDouble(ACCOUNT_BALANCE);
const double equity = AccountInfoDouble(ACCOUNT_EQUITY);
// ...
const int positions = PositionsTotal();
const long updated_at = (long)TimeGMT();