Support

Equilla Formula Language

GetActiveOrderCount

Returns the number of active orders (visible in the position manager's active orders tab) for the current instrument.

Inputs

IncludeImplicitExitOrders
Boolean: (Optional) Specifies whether implicit exit orders should be included. The default value is false.

Examples

Display all active stopp and limit prices
Variables: i; If IsLastBar Then Begin For i = 1 To GetActiveOrderCount Begin If GetActiveOrderType( i ) = OrderTypeStop Then DrawPriceMarker( GetActiveOrderPrice( i ) ) Else If GetActiveOrderType( i ) = OrderTypeLimit Then DrawPriceMarker( GetActiveOrderPrice( i ) ) End; End