Strange Problem with OrderCommission() function - page 2

 
crossy:
Thankes.

Hello my freinds,


I found the reason of the problem and I want to share it with you all:


The reson of the misfitting is that I didn't add the  OrderSwap() value.


The ProfitB1 = ProfitB1+OrderProfit()+OrderCommission();  sould be: ProfitB1 = ProfitB1+OrderProfit()+OrderCommission()+OrderSwap()   ;


Thank you all.