That's the matter, if you are still within the same bar you don't get information on what is going on on the market (or any marketposition change) till you end that bar, Isn't it?
Thus, if you know that marketposition=1 is because that marketpostion change took place at least one bar ago.