Skip to content

Functions

The signal editor provides the flexibility to apply various functions when specifying your conditions. Below is a description of the available functions.

Price

The price category of functions give information about the current price, based on your symbol.

  • Ask: the current price requested by your broker.
  • Bid: the current price offered by your broker.
  • Pip: the value of 1 pip. For EURUSD this is 0.0001.

Account

The account category of functions give information about your account.

  • Balance: the current balance of your account.
  • Equity: the current equity (balance + floating profit(s)) of your account.

Date

The Date category of functions give information about the date- and time functions.

  • Day of month: a number between 1 and 31. Each month, it begins with the value 1 and ends with a number between 28 and 31, depending on the length of the month.
  • Day of week: a number between 1 (Monday) and 7 (Sunday).
  • Day of year: a number between 1 (1st of January) and 365 or 366 (31st of December).
  • Hour: a number between 0 (0 am) and 23 (11 pm).
  • Minutes: a number between 0 and 59.
  • Month of year: a number between 1 and 12.
  • Seconds: a number between 0 and 59.

Order

The Order category of functions give information about open orders.

  • No. of open orders: the total number of currently open orders (buy and sell).
  • No. open buy orders: the total number of currently open buy orders.
  • No. open sell orders: the total number of currently open sell orders.
  • Open price: the price at which the order was opened. When used in the context of a signal, it’s the last buy or sell order (depending on type of signal). When used in the context of a TP/ SL module, it’s the order being evaluated.
  • Open price highest: the highest open price price at which any open order was opened.
  • Open price highest buy: the highest open price price at which any open buy order was opened.
  • Open price highest sell: the highest open price price at which any open sell order was opened.
  • Open price lowest: the lowest open price price at which any open order was opened.
  • Open price lowest buy: the lowest open price price at which any open buy order was opened.
  • Open price lowest sell: the lowest open price price at which any open sell order was opened.
  • Open price newest: the price at which the newest open order was opened.
  • Open price newest buy: the price at which the newest buy open order was opened.
  • Open price newest sell: the price at which the newest open order was opened.
  • Open price oldest: the price at which the oldest open order was opened.
  • Open price oldest buy: the price at which the oldest buy open order was opened.
  • Open price oldest sell: the price at which the oldest open order was opened.
  • Open price closed: the price at which the most recent closed order was opened.
  • Open price closed buy: the price at which the most recent closed buy order was opened.
  • Open price closed sell: the price at which the most recent closed sell order was opened.
  • Close price: the price at which the most recent closed order was closed.
  • Close price buy: the price at which the most recent closed buy order was closed.
  • Close price sell: the price at which the most recent closed sell order was closed.
  • Open seconds: the duration, in seconds, since the order was opened. When used in the context of a signal, it’s the last buy or sell order (depending on type of signal). When used in the context of a TP/ SL module, it’s the order being evaluated.
  • Open seconds newest: the duration, in seconds, since the newest open order was opened.
  • Open seconds newest buy: the duration, in seconds, since the newest open buy order was opened.
  • Open seconds newest sell: the duration, in seconds, since the newest open sell order was opened.
  • Closed seconds: the duration, in seconds, since the last closed order was closed.
  • Closed seconds buy: the duration, in seconds, since the last closed buy order was closed.
  • Closed seconds sell: the duration, in seconds, since the last closed sell order was closed.
  • Profit open orders money: the total amount of profit of all open orders in account currency.
  • Profit open orders pips: the total amount of profit of all open orders in pips.
  • Stop loss: the closest stop loss value set for the order. When used in the context of a signal, it’s the last buy or sell order (depending on type of signal). When used in the context of a TP/ SL module, it’s the order being evaluated. If no stop loss value is set for the order, it defaults to the Empty value, represented by a long number (2147483647).
  • Stop loss newest: the closest stop loss value set for the newest open order.
  • Stop loss newest buy: the closest stop loss value set for the newest open buy order.
  • Stop loss newest sell: the closest stop loss value set for the newest open sell order.
  • Stop loss oldest: the closest stop loss value set for the oldest open order.
  • Stop loss oldest buy: the closest stop loss value set for the oldest open buy order.
  • Stop loss oldest sell: the closest stop loss value set for the oldest open sell order.
  • Take profit: the closest target profit set for the order. When used in the context of a signal, it’s the last buy or sell order (depending on type of signal). When used in the context of a TP/ SL module, it’s the order being evaluated. If no take profit value is set for the order, it defaults to the Empty value, represented by a long number (2147483647).
  • Take profit newest: the closest take profit value set for the newest open order.
  • Take profit newest buy: the closest take profit value set for the newest open buy order.
  • Take profit newest sell: the closest take profit value set for the newest open sell order.
  • Take profit oldest: the closest take profit value set for the oldest open order.
  • Take profit oldest buy: the closest take profit value set for the oldest open buy order.
  • Take profit oldest sell: the closest take profit value set for the oldest open sell order.