取得帳戶資訊
//+------------------------------------------------------------------+
//| 取得帳戶資訊 |
//+------------------------------------------------------------------+
void GetAccountInfo(CAccountInfo &account_info)
{
Print("餘額:", account_info.Balance(),
", 權益數:", account_info.Equity(),
", 盈利:", account_info.Profit(),
", 保證金:", account_info.Margin(),
", 可用保證金:", account_info.FreeMargin()
);
//---
return;
}