Skip to content
All library documents

Account-Wide Loss Limits by Order Size in a Forex Expert Advisor

Article MQL5 code base

Summary

Zakryvator is an expert adviser that monitors open terminal orders and closes an order when its loss reaches a configured amount in the account currency. It can be attached to any currency pair and is described as monitoring orders across pairs, including those opened without the adviser attached. Traders can set different loss limits for tiers of order volume; the page illustrates this with sample limits for small and large positions.

This is a loss-control utility, not an entry strategy: it specifies how to cap losses by position size but provides no testing, performance evidence, or guidance on how to choose suitable thresholds. The documentation cautions that execution may slip depending on market conditions and the broker. Its behavior therefore depends on execution quality, and the stated thresholds should not be read as guaranteed exit prices.

Key ideas

  • The adviser monitors open terminal orders and closes them at configured account-currency loss limits.
  • It can monitor orders across currency pairs from a single attached instance.
  • Separate loss thresholds can be configured for different order-volume ranges.
  • Slippage can cause actual closing results to differ from the configured threshold.

Tags

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