Adjust Stops will always execute when an instrument has an active position.  Script executes after all the instruments with active positions have been updated with the new trade date information.


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



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: 5/10/2017 7:50:58 AM

Topic ID#: 129


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