Skip to content

Take profit - Trailing

The Take profit - Trailing module doesn’t set a take profit (TP) right after an order opens. It waits until the order reaches a loss threshold, then sets the TP and moves it down with the price. Use it to close an order as it recovers from a drawdown.

Time → No TP yet Entry price Loss threshold Trailing TP 1 Buy order 2 Loss threshold reached 3 TP set TP = Entry − Trail start value TP hit loss reduced
Trailing take profit. TP moves down when the price moves down. TP can go into loss.
  1. The order opens without a TP (see ‘1’ in the image).
  2. The loss reaches the Loss threshold (see ‘2’ in the image).
  3. The TP is set at the open price − Trail start value, and moves down as the order makes new lows (see ‘3’ in the image).
  4. When the price recovers and hits the TP, the module closes the order.

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.

  • Name: optional, tells this module apart from others of the same kind. See Name.
  • Loss threshold (pips): the loss an order must reach before the TP is set. Before that, the module has no effect. Example: with 30, the TP is set (and the trailing starts) at 30 pips of loss.
  • Trail start value: where the TP starts, in pips of loss: TP = open price − Trail start value. With 20 the order closes as soon as it is back at 20 pips of loss; with 0 the TP is at break-even; with -10 at 10 pips of profit.
  • Trail step size: how much the TP moves down for every pip of new loss. With 1 it moves 1 pip; with 2 it moves 2 pips.

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