The fnGetConsectutiveCount is used to get the currency symbol of the last closed trade on the account that matches the selection criteria.


For example:






Parameters on the Configuration Tab


The following table provides information about each parameter of the fnGetConsectutiveCount function.


type

The type of trades:


WINS: returns the number of consecutive winning trades (profit greater than or equal to zero).

LOSSES: returns the number of consecutive losing trades (profit less than zero).


Order Selection

Determines what orders of the Account are queried.

  • All: all open orders on the account.
  • Symbol: only open orders matching the selected symbol.
  • Order Type: only open orders of the selected order type.
  • MagicNumber: only open orders with a matching magicnumber.
  • Exact Ticket: only open orders with the matching order ticket.


Note: Selecting Exact Ticket disables all other selection criteria.