The fnGetConsectutiveCount is used to get the currency symbol of the last closed trade on the account that matches the selection criteria.
For example:
- If the last closed trade was profitable, the number of consecutive WINS is 1, and the number of consecutive losses is 0.
- If the last 2 closed trades were profitable, the number of consecutive WINS is 2, and the number of consecutive losses is 0.
- After the fnGetConsectutiveCount 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 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.
Note: Selecting Exact Ticket disables all other selection criteria. |