Total number of open orders in the system not filled or rejected. This property updates right after each order is created, and after any order is rejected.
When a symbol is entered return results will be the number of system orders for the symbol not filled or rejected.
Syntax:
|
iOrderCount = system.totalOrders( [symbol] )
|
Parameter:
|
Description:
|
[symbol]
|
[symbol] is an optional parameter.
•When a portfolio symbol is entered return results will be the number of system orders for the symbol not filled or rejected. •When a portfolio symbol is omitted the number returned is the same value as the System.totalOpenOrders. |
Notes:
|
system.totalOpenOrders and system.totalOrders can return the same value. They can also return different values when system.totalOrders( symbol ) is called with a symbol value in its optional parameter.
Understanding how the two above metods can be used is in system.SetAleternateOrder topic.
|
Example:
|
' Show the number of orders open for this symbol
PRINT "VTI orders: ", system.totalOrders( VTI )
|
Results:
|
VTI orders: ,1
|
|