//+------------------------------------------------------------------+ //| Get user info string | //+------------------------------------------------------------------+ public bool GetAccountInfo(UInt64 login, out string str) { str = string.Empty; //--- request account from server m_account.Clear(); MTRetCode res = m_manager.UserAccountRequest(login, m_account); if (res != MTRetCode.MT_RET_OK) { m_manager.LoggerOut(EnMTLogCode.MTLogErr, "UserAccountRequest error ({0})", res); return(false); } //--- format string str = string.Format("Balance: {0} Equity: {1} Margin: {2} Free: {3}", m_account.Balance(), m_account.Equity(), m_account.Margin(), m_account.MarginFree()); //--- return(true); }