Why is there a loss as soon as I open a trade?
Understand the effect of spread on your trades. Opening a position locks your close rate at the sell price, causing an initial loss.
Please bear in mind that when you open a position, the current rate becomes the rate at which the position would close, i.e. the Sell rate. This is why, when you open a position, it shows an immediate loss due to the difference between the two rates i.e. the spread inherent in the trade.