Version 2.40 better detects your script bugs. This is a good thing.

Also, do you see how your BarOffset is greater than your BarPeriod? That's illegal. It can be "0 or a positive number smaller than BarPeriod".
https://zorro-project.com/manual/en/barperiod.htm