priceClose() is no feed from metatrader, but simply the close price of the recent bar. You won't enter trades in the middle of a bar unless you do that intentionally, for instance by using a TMF or entry limit.