I have the following code to get commission, sometimes it gets it, sometimes not.
How can I reliably get the commission?
Many Thanks, Caesar.
Trade LastTrade;
// Get comission
if (SystemPerformance.AllTrades.Count > 0)
{
LastTrade = SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1];
Commission = LastTrade.Commission * 2;
}

Comment