After Instrument Open Script

WARNING:

The 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 in the instrument file is available.  For this reason, it is possible to write systems with postdictive information that are unavailable in live trading.  They are unavailable in live trading because the market is still open, but the file data that is the source of the instrument prices has not been released and loaded into the data file.  

 

In simple terms, making decisions using postdictive information that is not be available in active trading when the market is strill trading leaves a data hole in the strategy.  .  If you want to create orders which are based on a bar's open, use the tradeDayOpen instrument property in the Entry Orders script.

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software