The fnGetLargestLoss is used to get the largest profit of a closed trade that matches the selection criteria.







Parameters on the Configuration Tab


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


type

The type of trades:


IN_LAST_TRADES: Considers the last max number of closed trades to calculate the largest loss.

IN_LAST_MINUTES: Considers the closed trades in the last max minutes to calculate the largest loss.


max

The number of minutes or trades to consider when calculating the largest loss.

The default value is 10.


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.