Ballast Break Even MT4
- 指标
- 版本: 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? MT4 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 trades 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 counted twice, if your broker charges it again on close), 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 trades, 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 on MT4 (every tick; EURUSD 1 year, Gold 7 months)
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.
- 41,096 break-even crossings, 6,019 profit-line and 2,674 loss-line crossings.
- 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.
- 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 MT4 does.
Inputs
- Magic number filter — -1 = all
- Count the commission twice — false (only if your broker charges it again on close)
- 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
- This is the MT4 version. The MT5 version is a separate product on the Market.
