我无法在MQL5
in 中获得交易利润的价值metatrader5
,因为它总是返回 0.0 :
MqlTradeCheckResult result;
trade.CheckResult(result);
Print("result balance=" + result.balance);
或另一种尝试:
double tradeResultProfit = trade.CheckResultProfit();
Print("trade Profit = ", tradeResultProfit);
double tradeResultBalance = trade.CheckResultBalance();
Print("trade Balance = ", tradeResultBalance);