OrderProperties

Top  Previous  Next

The order object (and the alternateOrder object) has the following properties. These properties can only be access in scripts that have a default order object context, or if you have set the order object using the SetOrder system function.


 


orderPrice

 

the price of the order for stop or limit orders, the close price for OnOpen orders and OnClose orders

stopPrice

 

the protect stop price of the order

entryRisk

 

the entry risk of the order, this is the difference between the order price and the stop price. This is not adjusted by the fill price.

quantity

 

the quantity of the order

fillPrice

 

the calculated fill price of the order

orderType

 

the order type as a string: "Long Entry", "Short Entry", "Long Exit", "Short Exit"

executionType

 

the execution type as a string: "at Market", "on Stop", "on Open", "on Close", "on Stop Close", "at Limit Close", "on Stop Open", "Limit", "on Limit Open"

position

 

the position as an integer: LONG or SHORT. Returns an integer, with 1 being long and -1 being short. The constants LONG and SHORT can be used for comparison purposes. This is not a string property.

isEntry

 

returns TRUE if the order is an entry

isBuy


returns TRUE if the order is a buy order

symbol


the symbol of the order

unitNumber


the unit number of the order

continueProcessing


returns TRUE if the order has not been rejected, and will continue processing

processingMessage


returns the reject message if rejected.

ruleLabel


returns the rule label as set by SetRuleLabel

customValue


returns the custom value as set by SetCustomValue

orderReportMessage


returns the order report message as set by SetOrderReportMessage

blockName


the name of the originating block

systemBlockName


the system and block name of the originating block and system

sortValue


returns the sort value as set by SetSortValue

noStopPrice


returns true if the order has no stop price set

referenceID


the unique reference ID for the order