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.
Use this script section to create orders for new positions, or for adding units to a position. Entry Orders is called for each instrument with a current date record.
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. |
Example: |
' Following Entry Orders script is copied taken from |
NOTE:Unless you wish to add to an additional Unit to an existing position you should always check for an existing position before creating a new order to enter in the same direction. |
Edit Time: 9/13/2020 3:23:11 PM |
Topic ID#: 302 |