A new version will be uploaded in short with a change in handling asset zone and market hours. BarZone will then be automatically set.

This will probably not solve your SPY problem, but simplify the script. If it then still does not work, please contact support with the script and asset list. We'll look into that.