Skip to content
All library documents

Automatically Moving Stops to Break Even on MT4 Trades

Article MQL5 code base

Summary

This document describes an MT4 utility for managing existing open positions. It monitors trades and moves a stop loss to the break-even price once a user-defined profit trigger is reached. An optional offset can place the stop beyond break even to lock in a small gain. The tool does not create trades or generate entry signals; it automates one part of position management.

Users can choose which positions to manage, filter by symbol or magic number, and apply separate controls to buy and sell orders. A dashboard displays account and trade information, and a one-click control can apply the adjustment immediately to eligible trades. The document provides no test results or detail on execution behavior, such as how it handles gaps, spreads, or rejected stop modifications. Break-even protection can limit losses after the trigger, but the description does not establish that it improves results across strategies or market conditions.

Key ideas

  • The utility moves an open trade’s stop loss to break even after a configured profit trigger.
  • An optional offset can set the stop beyond the entry price.
  • Trade management can be filtered by symbol or magic number, with separate buy and sell controls.
  • The tool manages positions but does not create trades or generate signals.
  • The document gives no performance evidence or detail on execution in fast or gapping markets.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.