Skip to content
All library documents

MetaTrader Breakeven Line Indicator for Open Positions

Article MQL5 code base

Summary

This document describes a MetaTrader indicator for MT4 and MT5 that calculates a breakeven price level from open positions and displays it as a horizontal chart line. It also reports the number of trades, total lots, and distance from the breakeven level in points and profit or loss. A keyboard shortcut toggles the line’s visibility, and configurable inputs control which position directions count and how the line and accompanying text appear.

The indicator’s line color changes according to whether the cumulative position is long, short, or neutral. The document explains configuration options but gives no calculation formula, worked example, trading method, or evidence about performance. A breakeven display is a position-monitoring aid; by itself it does not establish how to manage risk, account for costs, or decide when to enter or exit positions.

Key ideas

  • The indicator displays a breakeven price based on open positions as a horizontal chart line.
  • It reports trade count, total lots, and distance to breakeven in points and profit or loss.
  • Inputs can exclude long or short positions and configure the line and text appearance.
  • The indicator supports both MT4 and MT5, but the document gives no calculation example or trading-performance evidence.

Tags

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