Skip to content

Take profit - Conditional

The Take profit - Conditional module sets a take profit (TP) when a condition becomes true. The TP is set a distance above the current price and can trail the price down. Many traders use it to reduce losses the moment the price retraces back in their favour, or to lower the target when the price moves against them.

Time → No TP yet Entry price Trailing TP 1 Buy order 2 Precondition true TP = Bid + TP start distance 3 TP hit loss reduced
Take profit - Conditional. The trailing TP lowers the TP goal as the price moves down.
  1. The order opens without a TP.
  2. When the Precondition becomes true, the TP is set TP start distance above the current price (see ‘2’ in the image). Then it trails the price down with every new low.
  3. When the price hits the TP, the order is closed (see ‘3’ in the image).

The TP of a buy order is set above the current price, not necessarily above the open price. So the order can be in loss when the TP is hit. For a sell order, everything is reversed: the TP is set below the current price.

  • Name: optional, tells this module apart from others of the same kind. See Name.
  • Enabled for: Buy orders, Sell orders or Buy and Sell orders. If buy and sell orders need a different condition, add this module once for buy orders and once for sell orders.
  • Precondition (optional): the condition that must be true before the TP is set. Until then the module is inactive. You build it like a signal: see Conditions. Without a precondition, the TP is set the moment the order opens.
  • TP start distance (pips): how far the TP is from the current price at the moment the Precondition becomes true: TP = current price (Bid / Ask) + TP start distance.
  • Trail step size: how much the TP moves down for every pip of new loss below the order’s previous low. With 1 it moves 1 pip; with 2 it moves 2 pips. With 0 the TP doesn’t trail (see the tip below).

MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.