Ballast Break Even
- インディケータ
- バージョン: 1.0
- アクティベーション: 10
One line at the price where all your open trades on the symbol together are at zero — swaps and commission included — plus lines for your basket profit target and loss limit.
Three buys at different prices, one sell, a few EAs on the same chart: where is the price at which all of it together is back at zero? MT5 does not show it. Ballast Break Even draws that price as one line and keeps it up to date on every tick.
What it shows
- Break-even line — the Bid price at which all open positions on the symbol together are at zero. Buys and sells, any lot sizes, manual trades and every EA (or one magic number only).
- Costs included — swaps and commission (optionally the closing commission too), so zero really means zero.
- Profit and loss lines — the price at which the basket reaches your target or your loss limit, in money or % of balance.
- Panel — number of positions, net long/short lots, result now, distance to break-even in points, and how much each point is worth.
- Fully hedged baskets are recognised: the panel shows the locked result instead of a line.
- Optional alerts when price reaches break-even, the profit line or the loss line.
- For EA developers: three buffers (break-even, profit and loss price) for iCustom, and a global variable BallastBE_<symbol>.
Tested (1 year, 5 symbols)
The test opened and closed random buys and sells (net long, net short and partly hedged baskets). Every time Bid crossed a published line, it found from the account's real results on those two ticks where the basket really was at zero (or at the target / loss), and compared.
- 67,040 break-even crossings, 14,685 profit-line and 7,956 loss-line crossings (EURUSD, Gold, US30, Bitcoin; GBPUSD on a EUR account).
- 0 times did price cross a line without the real result crossing zero / the target.
- Distance between the published line and the real zero point: 0.00 points on EURUSD, Gold and US30; at most 1.7 points on the EUR account (currency conversion) and on Bitcoin within the cent rounding of the profit.
- Fully hedged baskets were recognised every time (no line, locked result shown).
- 8 symbol/timeframe/deposit validation combinations without errors.
Notes
- Lines are Bid prices at the current spread. Sells close at Ask, so when the spread widens (rollover, news) the break-even of a basket with sells moves with it; the line is recalculated on every tick.
- Profit in another currency is converted at today's rate, like MT5 does.
Inputs
- Magic number filter — -1 = all
- Count the closing commission — true
- Profit line (money / % of balance) — 0 / 1%
- Loss line (money / % of balance) — 0 / 2%
- Alerts at break-even / at the lines — off / off
- Colours, font size, panel corner — gold, green, red / 9 / bottom right
Works well with Ballast Equity Target, which closes the whole basket when it reaches your target.
