I was using
SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1].ProfitCurrency
to print the P&L of the strategy, but found out that if I had a partially filled order followed by a filled order, the system treated it as 2 trades, and therefore the P&L would only show the last trade (not including the partially filled). But what I really want is to print the P&L of the strategy from the last flat position and this flat position, how can I achieve that?
Thanks,
Billy

Comment