By default, the charts display the Bid price. When opening a Buy position, you will execute it at the Ask price and close it at the Bid price. To determine the Ask price, you need to add the spread to the Bid price. Consequently, the price difference results from the spread.