MT4 charges the full commission on the open of the trade, but it is a floating cost until the trade is closed so it does not affect the balance of the account until the trade is closed, but it does affect the equity of the account as soon as the trade is opened 

> commissions are deducted in MT5 half on the open, half on the close 

> swap fees are deducted just after 00:00 server time each day