How to calculate the total profit of a particular symbol in EA

 
Please how do i calculate the total profit or loss of a particular symbol in EA, that is in a situation i have so many sell and buy in the symbol and i want to know if both sell and buy if calculated together in the symbol are in profit or loss.
 
  1. Profit is OrderProfit() + OrderCommission() + OrderSwap()
  2. Go through the order list and sum profit for the symbol.
Reason: