//--- Состояние терминала 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();