The fnGetLargestLoss is used to get the largest profit of a closed trade that matches the selection criteria.
- After the fnGetLargestLoss function has been added to a Drawing, it is configured by clicking the (+) button along the bottom of the Element.
- The Function Configuration window allows you to select values for each parameter.
- Parameters on the Configuration Tab should be inspected and set each time the function is added to a drawing.
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.
Note: Selecting Exact Ticket disables all other selection criteria. |