The following table shows an intermediate view of the scripts available to the most common Block Types:

 

Block Type

Script Type

Day

Instrument

Position

Called When

Entry

Before Simulation

 

 

 

Simulation start

Before Test

 

 

 

start of test

Before Trading Day

=

 

 

start of day

Entry Orders

 

=

 

start of day

After Trading Day

=

 

 

end of day

After Instrument Day

 

=

 

end of day

After Test

 

 

 

end of test

After Simulation

 

 

 

Simulation end

Exit

Before Simulation

 

 

 

Simulation start

Before Test

 

 

 

start of test

Before Trading Day

=

 

 

start of day

Exit Orders

 

 

=

start of day

Adjust Stops

 

 

=

end of day

After Trading Day

=

 

 

end of day

After Instrument Day

 

=

 

end of day

After Test

 

 

 

end of test

After Simulation

 

 

 

Simulation end

Money Manager

Unit Size

Automatically called when any of the broker functions called to initiate a new entry order.  Not all initiated orders become broker orders.  An order can fail when a portfolio Trade Control Function is is enabled to block one or both trade direction orders.  

 

An order can also fail the order's quantity order size it too large for the available the available equity.  It can also fail when the order's size is smaller than the minimum allowed order size setting.

 

When an order is found to be missing, review the User's Guide topic Order Filtering to understand how orders are filtered.

 

You can build very complex and effective systems using only these Block Types and these limited number of scripts.

 

After you have explored these scripts and their use in building new Trading Blox, you can explore the full set of scripts described in the Script Reference.

 


Last Edit: 10/16/2017

Edit Time: 10/16/2017 4:54:44 PM

Topic ID#: 161

 

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