fnTrailingStop




NOTE: A Trailing Stop can be added to any order using the Trailing Stop Parameter of the fnOpenOrder function.




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


Order Selection

Determines what orders of the Account are closed.

  • 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.

stoploss

The value at which to trail the open trade.

  • A value can be manually entered into the text-box.
  • A value can be selected using the Choose button.
  • A value can be entered as an integer or as a price level by selecting the Offset value or Absolute value button.  The Absolute value option is useful for using technical indicator values or price values such as Low[1] or High[1].



The bottom portion of the window allows the Element Name to be saved.