This script has instrument context by default.  When it executes it will have direct access to all IPV properties and functions.

 

Script is called before the After Trading Day script section.  Script executes on every test date for each instrument in the portfolio where a date record exist and that instrument's property reports instrument.isPrimed = TRUE.  This script can be an alternate location to calculate instrument-specific variables or custom indicators each day.

 

NOTE:

Script will execute for each instrument in the portfolio on each test date.

 

Executing this script when the instrument record is earlier than the current test date will find instrument property values will contain data from the nearest earlier instrument record.

 

To know if there is a instrument date that can match the current test date use the instrument.tradesOnTradeBar property.  When the current test matches the instrument date this property will return TRUE. When the instrument date is earlier this property will return FALSE.

 

Use the instrument.tradesOnTradeBar property when it is important to know, or to not allow calculation changes to this instrument when test and instrument dates do not match.

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 205

 

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