Skip to content
All library documents

Equity Curve Indicator for Tracking Returns, Margin, and Drawdown

Article MQL5 code base

Summary

This indicator plots account balance and equity over trading history, with optional displays for used margin and free equity. It can also show period returns, maximum drawdown in absolute and percentage terms, profit factor, and recovery factor. Filters allow the displayed calculations to include selected trade types, symbols, order directions, identifiers, or comment text, while drawdown alerts and monitoring periods support risk oversight.

The described modernization aims to evaluate contract values more reliably across instruments, including futures and contracts whose broker symbols use prefixes or suffixes. The source emphasizes that accurate operation depends on fully downloaded trade history and synchronized symbol histories; the initial chart can appear distorted until history loads correctly. This is an account-monitoring and analysis tool, not a trading strategy. The description does not provide independent validation of its calculations, and displayed performance statistics depend on the completeness and classification of the underlying account history.

Key ideas

  • The indicator plots balance and equity and can optionally show used margin and free equity.
  • It reports returns and risk statistics such as maximum drawdown, profit factor, and recovery factor.
  • Order filters can restrict calculations by symbol, direction, identifier, or comment text.
  • Drawdown monitoring can be limited to a specified period and configured with alert thresholds.
  • Reliable results require complete trading history and synchronized instrument data.

Tags

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