How do you obtain the total Profit for an account?

 

Hi all, AccountProfit () returns the current open trades' P/L for an account.

How can I compute the total profit/loss for all open/closed trades? I hope not to iterate through the OrderHistory to get this. ;)