The charts show the Bid price by default. A Buy position is opened with the Ask price and closed with the Bid price. You have to add the spread on the Bid price to find the Ask price. Therefore the difference in price is due to the spread.