Skip to content
All library documents

Managing Forex Trades with Stop Losses, Break-Even Moves, and Trailing Stops

Article MQL5 code base

Summary

This document describes an MT4 trade manager for applying protective rules to already-open forex orders. It can set stop loss and take profit distances in pips, shift a stop to break-even after a chosen profit threshold, and trail the stop as price moves. Settings control activation thresholds, stop distance, and the minimum movement needed before updating the stop. The manager can apply to the chart’s symbol or to trades across symbols.

The tool can place levels through the broker or use a stealth mode that hides them and closes trades programmatically when a level is reached. It also displays daily profit or loss in pips and account currency. These are product capabilities, not evidence that the settings improve results. The description does not discuss slippage, outages, spreads, or how to select suitable thresholds, so users cannot infer protection or profitability under all market conditions.

Key ideas

  • The manager can automatically attach stop loss and take profit levels to open orders.
  • A break-even rule moves the stop after a configured profit threshold is reached.
  • A trailing stop follows price subject to a start threshold, distance, and minimum update step.
  • Trade management can be limited to the current symbol or extended across symbols.
  • In stealth mode, stop and target levels are hidden from the broker and enforced by the software.
  • The product description provides no performance evidence or guidance for choosing settings.

Tags

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