Sorry, I had sort of overlooked your script. Yes, I can confirm the problem when Weekend is set to 1 and price quote are not received within the bar. It should not behave this way. We'll look into it.