Total number of open orders not filled or rejected. This property is updated when an order is created, or an active order is rejected.
When called from a script section where an order is generated, this property will include the most recent order in its return value once the Broker function returns the processing to script section where the Broker function was executed.
Syntax: |
---|
x = system.totalOpenOrders |
Parameter: |
Description: |
---|---|
<none> |
Property keeps a count of all active and unfilled orders. |
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 methods can be used is in system.SetAleternateOrder topic.
system.TotalOrders can provide the same information as this property. This system.totalOpenOrders property is kept for backward compatibility, but could be removed from the manual on a later date. |
Example: |
---|
' Property value change can first be seen here:
Results:Before Orders Execution,2012-05-31,5 |
Links: |
---|
Alternate Objects, OrderFunctions, Order Object, OrderProperties, SetAleternateOrder, System Properties, TotalOrders |
See Also: |
|
Edit Time: 9/21/2020 3:40:29 PM |
Topic ID#: 625 |