Property <Object_Name>.orderType returns the text description of this order type of order when brokered.  Order type property value is controlled by the Broker Object function used to generate the order.


Prefix "Object_Name" can be order or alternateOrder, when an order is being accessed outside of a script when instruments are in context.


Order Types:

Use Description:

Long Entry

Short Entry

Any of the various order execution types that will generate a Long or Short entry order

Long Exit

Short Exit

Any of the various order execution types that will generate a Long or Short exit order.



Trading Blox order types are controlled by which Broker Object function is selected for generating an order.


Information about what order type is active is available with Order Object or AlternateOrder Object this way: <object_name>.executionType


'  Send Order's execution method to Print Output.csv file
Print order.executionType



Any of the order type Broker Object methods available.


Alternate Order Object:

Access to Order Object properties and functions in other scripts is made possible by using the AlternateOrder Object as the prefix ahead of the "." property or function. AlternateOrder Object is discussed below.



Always check to be sure the order is available after a Broker function call using the system.orderExists function prior to accessing it.


Using the alternateOrder object when orders are not in context will provide the same access as the Order object.  However, the alternateOrder object must be brought into context using the system.SetAlternateOrder object function prior to any attempt to use is properties and functions.


Once orders are brought into context their properties and function are available to reference and changes.




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