The chart usually plots only the Bid price, so the gap between the two prices, the spread, shows up as an immediate loss even though the line you are watching has barely moved.
Why a fresh position can start in the red
When you open a trade, the platform executes it at the current market price on the side you chose. A buy is filled at the Ask price and a sell is filled at the Bid price. Profit and loss is measured against the opposite side of the quote, so the spread is effectively paid at entry.
The default MetaTrader chart only draws the Bid price, so the Ask side you paid is not on the screen unless you switch it on. That is why the chart appears almost flat while the position already shows a small negative figure.
Which situation matches yours?
Read all cases and sources
I opened a buy and the chart looks flat but the position shows a loss
Your entry was at the Ask while the chart plots the Bid. Turn on the Ask line and add the Spread column to see the gap you paid. Check the Ask on your entry against the current Bid to confirm.
I want to know when a buy breaks even
Compare the Bid now with the Ask you paid at entry. Before commission and swap, a buy is flat when those two prices match. For a sell, compare the current Ask with the Bid at entry.
Bid and Ask: the two prices behind every quote
JustMarkets describes the Bid price as the price at which a trader can sell and the Ask price as the price at which a trader can buy. The Bid is always lower than the Ask in the quote, and their difference is called the spread.
The help article gives EURUSD with a Bid of 1.09563 and an Ask of 1.09570, and XAUUSD with a Bid of 2378.33 and an Ask of 2378.45. In each case the Ask sits above the Bid, and that gap is the cost built into opening a position.

Where to check the two sides of the quote
| Platform | How to see Bid, Ask and spread |
|---|---|
| Desktop MT4 | Charts > Properties (F8) > Common > Show Ask line. Market Watch right-click > Spread column. |
| Desktop MT5 | Charts > Properties (F8) > Show > Show ask price line. Market Watch > Columns > Spread. |
| WebTrader MT4 | Right-click chart > Properties > Show ask line. |
| Mobile MT4/MT5 | Settings > Ask price line. Spread appears below the instrument in Quotes. |
| JustMarkets Trading App | Spread shown below the Sell and Buy buttons on the chart. |
How to see the spread on your platform
By default, MetaTrader desktop and mobile charts show only the Bid price, so the Ask line must be enabled manually. On desktop MT4, use Charts then Properties (F8), open the Common tab and tick Show Ask line. On desktop MT5, the same route opens the Show tab where you tick Show ask price line, and the line is red by default.
The spread itself can be displayed in Market Watch by right-clicking an instrument and adding the Spread column. The mobile MT4 and MT5 apps show the spread below each instrument in the Quotes list, and the JustMarkets Trading App shows it below the Sell and Buy buttons.

What widens the spread
The spread is not fixed. JustMarkets notes that it can widen during market volatility, around major news releases, during unexpected economic events, and at market opening or closing including daily rollover, when liquidity is thinner.
JustMarkets states that it offers floating spreads starting from zero pips and directs readers to its Contract Specifications page for typical spreads by account type. Check the live spread on the instrument you intend to trade rather than assuming the lowest figure applies at that moment.

When a small loss can turn into a gain
A position sitting exactly at the spread shows a loss equal to that spread. For a buy, the Bid must rise to the entry Ask before the trade breaks even. For a sell, the Bid must fall by at least the spread.
Suppose EURUSD shows Bid 1.09563 and Ask 1.09570. Buy at the Ask and the initial gap is 0.7 pips. To break even before commission and swap, the closing Bid must rise to the entry Ask of 1.09570. With the same entry Ask and a wider two-pip spread, the opening Bid would be 1.09550 and would need to rise two pips.