Check if it still happens with the new beta version, 1.59.5. If so, check if it still happens when you edit MinutesPerDay and set it to the real daily trading time of the asset. If this still does not help, please contact support with your script. They'll look into it.