Skip to content

Maximum lifespan

The Maximum lifespan module closes an order after a number of minutes, if it wasn’t closed yet. Use it for a time exit: a trade that hasn’t reached its target or stop in time is closed anyway.

Time → Entry price Maximum minutes 1 Buy order 2 Maximum minutes reached order closed
Maximum lifespan
  1. The order opens and the module starts counting from its open time.
  2. When the order is still open after Maximum minutes, the module closes it.
  • Maximum minutes: the number of minutes after the open time after which the order is closed. For example 1440 for one day.

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