This script has Automatic Instrument Context by default. This means, when this script section executes, it is given direct access to all IPV Properties and Functions.
Exit Order Filled script is called each time an exit order is filled. This script lets you perform any calculations or take actions that depend on the fill price or fill dates for an order.
This script has Automatic Instrument Context by default. This means, when this script section executes, it is given direct access to all IPV Properties and Functions.
This script has full access to the Order object properties.
All scripts of this type in a System will be called each time an exit order is filled. To check if the current block is the same as the block originating the order, use the following:
IF block.name = order.blockName THEN
' Process Exit Filled Calculations when needed.
EndIF
NOTE:
This scripts section will not normally execute when a instrument specific date record is not in the instrument's data file.
A current record is a record date for the same test date on which this script is executing. This means a test date must have an instrument date price record in order for this script section to execute.
When it does have a missing instrument record any orders that were active for the active test date, orders will not be filled or expired by the brokerage process. However, when an order is still active after the brokerage process, it will be available to execute an order fill or allowed to expire on the next available instrument date trading session.
Edit Time: 9/12/2020 10:28:44 AM |
Topic ID#: 321 |