Skip to content
All library documents

Automating Position Protection and Daily Limits in MT4

Article MQL5 code base

Summary

The document describes an MT4 utility for managing open positions rather than generating trade entries or signals. Its functions include applying missing stop-loss and take-profit levels, moving a trade to break even after a chosen profit threshold, and using a trailing stop to follow favorable price movement. Traders can filter which positions are managed by trade type, symbol, or Magic Number, supporting accounts with multiple strategies.

It also outlines account-level daily profit targets and loss limits, plus a dashboard for viewing positions and settings and taking basic management actions. These features are presented as operational controls that can automate routine trade handling; the document supplies no performance data, testing evidence, or detail on how limits are enforced under fast markets, gaps, or platform interruptions. It explicitly positions the utility as a management tool, so the choice and timing of entries remain outside its scope. Stop and target settings still require appropriate calibration to the strategy and trading conditions.

Key ideas

  • The utility manages existing MT4 positions and does not generate entries or signals.
  • It can apply stops and targets, move trades to break even, and trail stops.
  • Filters can target manual trades, selected symbols, or positions with a specified Magic Number.
  • Daily profit and loss thresholds provide account-level monitoring options.
  • The document describes features but gives no evidence of improved trading performance.

Tags

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