The charts show the Bid price by default. You open a Buy position with the Ask price and close it 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.
The charts show the Bid price by default. You open a Buy position with the Ask price and close it 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.