Skip to content
All library documents

Monitoring Expert Advisor Drawdowns Against Historical Limits

Article MQL5 code base

Summary

This document describes a MetaTrader indicator for tracking an automated strategy’s current drawdown and comparing it with a manually entered historical maximum. Traders can monitor all positions or select them by magic number, choose a fixed balance or the highest balance reached as the reference, and set refresh and display options. The indicator can issue mobile notifications when drawdown records are reached or at configured intervals, and can log dated drawdown values to a file for later review.

The guide explains the available settings and recommends using a historical drawdown estimate from backtests or previous results as a comparison point. It also describes placing the indicator on a dedicated chart or monitoring separate strategies individually. This is a monitoring aid rather than a risk-control system: the document gives no performance validation, and a historical drawdown is only a reference, not a reliable ceiling on future losses. Its alerts and records also depend on correct configuration and the accuracy of the chosen balance reference.

Key ideas

  • Compare live drawdown with a historical maximum entered by the user.
  • Select positions to monitor by magic number or track all positions.
  • Choose a fixed balance or the highest recorded balance as the drawdown reference.
  • Configure mobile alerts and file logging to review drawdown changes over time.
  • Historical drawdown is a reference and does not guarantee a limit on future losses.

Tags

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