Skip to content
All library documents

Monitoring Expert Advisor Drawdowns Against Historical Limits

Article MQL5 code base

Summary

The document describes a MetaTrader indicator for tracking the drawdown of automated or semi-automated strategies. A trader can filter positions by magic number, compare live drawdown with a manually entered historical maximum, and choose whether the reference balance stays fixed or follows the account’s highest balance. The indicator can display current and historical drawdown on a chart and send mobile alerts when drawdown records are reached or at configured intervals.

It also supports periodic updates, journal messages, and timestamped CSV or TXT logging for later review. The guide explains the configurable inputs and the desktop and mobile notification setup. Its main use is operational risk monitoring: comparing live behavior with a historical or backtested reference and noticing when drawdown exceeds expectations. The document does not provide evidence that the reference drawdown predicts future losses or define a universal acceptable threshold; the usefulness of alerts depends on the user’s baseline, settings, and monitoring choices.

Key ideas

  • The indicator compares current strategy drawdown with a user-entered historical maximum drawdown.
  • Positions can be monitored by magic number, with an option to track all positions.
  • The balance reference can be fixed at initialization or set to the account’s peak balance.
  • Chart display, refresh frequency, alerting, and file logging are configurable.
  • Historical drawdown is a reference for monitoring, not a guarantee of future risk limits.

Tags

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