Skip to content
All library documents

Charting Breakeven Levels for Open Buy and Sell Positions

Article MQL5 code base

Summary

This short description covers a chart script that calculates and displays breakeven levels separately for open buy positions and open sell positions. It is a position-monitoring aid: traders can see the level at which each side of their open exposure reaches breakeven, rather than treating all positions as one combined level. The document identifies the script as based on earlier MQL4 code, but does not explain the calculation method or provide examples, screenshots, or trading results.

The stated operational caveat is that the script should be restarted when the number of positions changes. No information is provided about how commissions, swaps, spread, or other trading costs enter the displayed levels, so the description does not establish whether the plotted values represent a fully cost-adjusted breakeven. It also does not present an entry, exit, or risk-management strategy; its substance is limited to visualizing breakeven levels for existing positions.

Key ideas

  • The script plots breakeven levels for open buy and sell positions separately.
  • It is intended to help monitor existing exposure rather than generate trade signals.
  • The document says to restart the script when the position count changes.
  • It does not specify how trading costs affect the displayed breakeven levels.

Tags

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