price() is the mean price of the bar, so it depends on bar length. priceClose() is the price at the exact time.