The difference between the bid and ask price is called the spread. The spread is the way forex brokers
make their commission on your trades. If you place a long order you will receive the bidding price. When you close that long order, you will receive the asking price. The forex broker will collect the difference. If you opened and immediately closed an order, without any movement in price, you would have paid the spread to the broker.