how the meta trader calculate the balance

[Deleted]  

what is the formula that meta trader use to calculate the balance?

thank's

 
Balance of what?
[Deleted]  

the balance that show in the results ... the last column ...

I get that the profit is calculated by this formula

profit = OrderProfit () + OrderSwap () + OrderCommission ();

how meta trader calculate the OrderSwap () ?

thank's

 
idantrade:

the balance that show in the results ... the last column ...

I get that the profit is calculated by this formula

profit = OrderProfit () + OrderSwap () + OrderCommission ();

how meta trader calculate the OrderSwap () ?

thank's

I suggest you to ask to your broker how the swap is calculated, it's not directly related to MT4.