WARNING: After Instrument Open script is an advanced script that is not recommended for most users. It is available to enable experienced system developers to write systems that have special order processing logic based on the relationships between the open, highs and lows.
Since this script is called after the current bar is set for each instrument (see Comprehensive Simulation Loop), the entire bar's price data is available. For this reason, it is possible to write systems with postdictive errors using this script.
If you want to create orders which are based on a bar's open, we recommend using the tradeDayOpen instrument property in the Entry Orders script.