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 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:

Reject

rejects the order to stop further processing, and sets the reject message that is printed in the Filtered Trade Log

SendToIB

Send the order to IB

SetAlgoParameter

Set the algo parameters for IB

SetAlgoStrategy

Set the algo strategy for IB

SetClearingIntent

sets the clearing intent property for IB orders. The default is set by the system.SetClearingIntent, and is "IB".

SetCustomValue

sets the custom value number

SetFillPrice

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

SetLimitPrice

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

SetOrderReportMessage

sets the order report message string

SetOutsideRTH

Set the Outside RTH flag for IB

SetQuantity

sets a new quantity for the order

SetRoutingExchange

Set the routing exchange used by IB

SetRuleLabel

sets the rule label string

SetSortValue

sets the sort value number of the order, for use in sorting the orders

SetStopPrice

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.

SetTimeInForce

sets the time in force property for IB orders. The default is "GTC"

SetTransmit

Set the transmit flag for IB

TimeInForce

Set the time in force such as GTC

 

Links:

AlternateOrder Object, AlternateSystem Object, Changing Orders, Order Object, Order Properties

See Also:

Alternate Order Object, Order Object

 


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


Topic ID#: 450

 

 

 

 

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