This table shows how each Trading Blox Builder script section is available during testing, and when in will execute for each test date and or time.  For example, Before Simulation and After Simulation script section will only execute once during the selected Suite test.  In a stepped test, Before Test and After Test will execute once for each step in a test.

 

Before Trading Day and other scripts identified in the table column named: Runs Once Each Bar will execute for each test date or date-time record in the data.

 

Script section identified in the Runs Once Each Instrument will execute once for each instrument for each date or date-time record in the data file.  Instrument identified in this column not assigned a "Y" designation, but instead show a reference notation (see table below), will only execute when the instrument test condition for that instrument requires execution.

Script Execution Timing Table TBv4.2.2.8

All the Trading Blox Builder module scripts are shown in this table:  

 

Each column descriptions shows the details of how often each script is executed for each of the script names.

 

Only script sections with Trading Blox Builder Basic statements will execute.  Script that are blank are not executed.

 

Only the scripts displayed in blox are executed.

 

Order number listed to the left of each script name is a relative indication of the order in which the scripts might execute most often.  Script execution for section identified with a notation also require the notation's condition be met to enable execution.

 

Each notational exception is describe in the legend below the table.

NOTE: Scripts shown as instrument scripts above are not run on holidays or other days where there is no instrument data. Scripts that are instrument independent are run every weekday regardless of holidays.

 

Legend:

Execution Description:

E-1

Unit Size and Can Add Unit scripts will only execute after a Broker Object function call that generates an order to enter the market with a new position or a new unit.  Only new entry orders pass through these script sections.  See order.isEntry

E-2

Entry Order Filled scripts only execute after the Can Fill Order script section completed its execution and allowed the order to continue.  They also require an entry order was filled. See order.continueProcessing

EX-1

Can Fill Order scripts only execute when either an entry has been filled in the market, or when an exit order has closed an active position or any of a position's unit segments.

X-1

Exit Orders only execute when there is an active instrument position, and it only executes when the instrument with the active position is sequenced into context.

X-2

Exit Order Filled scripts only execute after the Can Fill Order script section has completed its execution and allowed the order to continue, and when an active position or any of its units have been closed.

X-3

Adjust Stops scripts executes when there is an open position ahead of the risk scripts so that risk information used can be collected and changes can be implemented.

Custom Scripts

<Custom-name-scripts> only execute when called.  They can be called from any another script, standard or custom, and when they complete their execution they return to line in the script from which they were called.

 

Links:

order.continueProcessing, order.isEntry, System Object, Accessing Instruments, LoadSymbol

See Also:

Script Section Type Details, Global Script Timing Table

 


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


Topic ID#: 173

 

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