Keeping track of profit per pair traded - page 2

 
GumRai: The only thing that I can see is that you don't include commisions and swaps,
sum_profits += OrderProfit()+OrderCommission()+OrderSwap();
Just to muddy the waters, some brokers place swap (multiple) and commission as separate entries in history.
Reason: