The Before Trading Day Script is called once at the beginning of each trading day in a simulation.
It can be used to used to reset Block Permanent variables values each day, or for debugging purposes.
This script does not have automatic-context access to Instrument properties, or Instrument Permanent variables. Instruments can be called in this script section using the LoadSymbol function to provide instrument context access.