My EA opens several trades when some conditions are met, and closes all trades when total profit (money) with swaps with commissions is equal to or greater than $100
This works well with swaps and but not the commission
My broker is IC Markets with $3.5 per lot per turn ($7.0 per lot round turn)
So the EA closes with $100 in profit, thereafter the broker now removes the $7.0 commission from the profit after the trades are closed
So the commission is always removed by the broker from the profit after closing trades, rather than being calculated with the profit by the EA. So that when the broker finally removes the commission, my profit should return to $100
Hence, I get a profit bellow $100 sometimes or even losses when the commission is high if I use big lots even though I made initial $100 from the trades
Please how can I make the EA add the commission to the profit before closing trades

