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 Entry Order Filled script is called each time an entry order is filled. It lets the user to perform any calculations or adjustments, or other actions that depend on the fill price or fill dates for an order.
The Turtle System uses this script to adjust stops for existing positions based on the slippage of an actual fill.
This script has full access to the Order object properties.
All scripts of this type in a System will be called each time an entry order is filled. To check if the current block is the same as the block originating the order, use the following.
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#: 300 |