Skip to content
All library documents

Chart Script for Updating Open Positions’ Stop Loss or Take Profit

Article MQL5 code base

Summary

This short description explains a chart operated tool for modifying protective exits on all open orders for the current instrument. The trader drags the script’s placement relative to the current market price: below the market it adjusts stop losses, and above the market it adjusts take profit levels. The example uses multiple GBP/USD long positions to illustrate that the change applies across open positions rather than to just one order.

The document describes a trade management utility rather than an entry strategy. It gives no details about order validation, broker constraints, handling of mixed long and short positions, or what happens if a requested level is invalid. No performance evidence is provided, so the text supports understanding the interface behavior but not judging execution reliability or trading outcomes.

Key ideas

  • The tool changes stop loss or take profit levels for open orders on the current instrument.
  • Dragging it below the market price sets or modifies stop losses, while placing it above sets or modifies take profits.
  • The described operation can affect multiple open positions at once.
  • The note gives no performance evidence or details on broker-specific execution behavior.

Tags

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