The Order functions are used to modify an existing order.
You can set the fill price, quantity, stop price, or reject the order all together. It is common in the Unit Size script to use the order.SetQuantity function to set the quantity of the order.
Notice that these can only be used in certain scripts that have default order object context. The scripts in which they can be used are listed for each function.
Order Function: |
Description: |
---|---|
AlgoStrategy |
Returns the algo strategy |
This function returns the name of the Block that created a specific Order . |
|
ClearingIntent |
Value used by IB for clearing intent. Defaults to "IB" |
GoodAfterDateTime |
Returns the good after date time as a string value. |
GoodTillDateTime |
Returns the good till date time as a string value. |
Hidden |
Returns the hidden T/F flag. |
IBOrderNumber |
Returns the order number generated by IB. |
IBCancelOpenOrder |
Cancels an Open Order. Use when discreet control, or multiple accounts is needed. |
IBConnect |
Connects to IB Order Server. Use when discreet control, or multiple accounts is needed. |
IBDisconnect |
Disconnects from IB Order Server. Use when discreet control, or multiple accounts is needed. |
OutsideRTH |
|
Rrejects the order to stop further processing, and sets the reject message that is printed in the Filtered Trade Log |
|
RoutingExchange |
|
Returns the name of the script section that created the order. |
|
SendToIB |
Send the order to IB. Created for those that need discreet control of the IB process and use multiple accounts. |
SetAlgoParameter |
Set the algo parameters for IB |
SetAlgoStrategy |
Set the algo strategy for IB |
sets the clearing intent property for IB orders. The default is set by the system.SetClearingIntent, and is "IB". |
|
sets the custom value number |
|
sets a new fill price for the order |
|
SetGoodAfterDateTime |
Set the good after date time for IB |
SetGoodTillDateTime |
Set the good till date time for IB |
SetHidden |
Set the hidden flag for IB |
sets a new profit taking limit for the order. This value is not used automatically by Trading Blox. |
|
SetOCAGroup |
Set the OCA group for IB |
Applies order information to the Position & Orders report |
|
SetOutsideRTH |
Set the Outside RTH flag for IB |
sets a new quantity for the order |
|
SetRoutingExchange |
Set the routing exchange used by IB |
Applies order information to the Trade Log. |
|
sets the sort value number of the order, for use in sorting the orders |
|
sets a new protect stop for the order. This value is only used automatically on the order entry day, and only if the Entry Day Retracement is greater than zero. |
|
SetUnitPositionMessage |
This function adds a message to a Unit in a position listing that will appear on the order generation report. |
sets the time in force property for IB orders. The default is "GTC" |
|
SetTransmit |
Set the transmit flag for "IB" |
Returns the name of the system that created the order. |
|
TimeInForce |
Returns the time in force such as "GTC" |
Links: |
---|
AlternateOrder Object, AlternateSystem Object, Changing Orders, Order Object, Order Properties |
See Also: |
Edit Time: 11/11/2020 2:27:49 PM |
Topic ID#: 450 |