Break-even
The Break-even feature moves the stop-loss to the entry price adjusted by the spread once a favorable activation level is reached. It protects profit by removing the loss risk after the position moves in your favor.
What the feature is for
Use this feature when you want to protect an already-profitable position. The stop is moved to the entry level — the entry price adjusted by the spread — only after the price has moved enough to cross the activation threshold, optionally with a locked profit offset.
Use Break-even
Adding the feature to the strategy enables it and removing it disables it. When disabled, the stop is never moved to the entry price.
Backtest behaviour
The activation is checked once per bar using the bar's close price: the bid (close) for long positions, the ask (close plus the spread) for short positions. When the floating profit reaches the activation level, the stop moves to the entry price adjusted by the spread — below the entry for long positions, above it for short positions — plus the locked profit offset.
The move is idempotent: re-checking on the following bars never moves the stop against the position.
For Equity percent, both the activation amount and the locked-profit amount are recalculated from current equity, including floating profit/loss, at every existing per-bar check. The MQL5 expert also reads current equity at each check. A better stop remains in force even if a later recalculation would produce a worse level.
Money and equity-percent distances use the base entry volume, before Martingale scaling or position adds, and the account-currency conversion rate at the check price. With an Equity percent or Progressive lots Entry amount, that base volume also follows current equity. Actual profit on the total position is therefore not guaranteed to equal the configured activation or offset amount.
For this distance conversion only, the reference volume is clamped to the broker's lot limits and rounded to its lot step. Actual entry orders outside the limits are still rejected.
Activation unit
The unit determines how the activation value is interpreted:
- Pips: price distance in pips.
- Money (account ccy): profit in the account currency.
- Equity percent: profit as a percentage of current equity at each per-bar check.
The activation value range changes with the unit:
- Pips: 1 to 100,000.
- Money: 1 to 100,000,000.
- Equity percent: 0.1 to 100.
Activation value
The activation value is the profit level that triggers the break-even move. Once the position reaches this profit, the stop-loss is moved to the entry price.
Locked profit (offset)
The locked profit offset adds a safety margin above the entry price. Instead of moving the stop exactly to the entry level — the entry price adjusted by the spread — the stop is moved to that level plus this offset, so a small locked profit is preserved.
- A value of 0 moves the stop exactly to the entry level (entry price adjusted by the spread).
- A positive value keeps a guaranteed profit after the move.
The offset uses the same unit and follows the same range rules as the activation value.
Trade environment preview
The feature shows a preview table that converts the activation level and the locked profit to the account currency in the active account environment.
- Distance: the configured activation distance in its own unit (pips, money, or % of equity).
- Break-even: the activation amount in the account currency, with the percent of the initial account in parentheses.
- Locked profit: the offset amount in the account currency, with its percent of the initial account in parentheses. A zero offset shows
0.00. - Amount (lots): the entry volume the calculation is based on.
The pip distances subtract the current spread, the same way the Take Profit preview does, so the money values of both features are directly comparable.
The preview appears only when a valid trade context is loaded.
The preview uses the initial account and last close; it is not a live calculation for the open position.
Example
EURUSD with a USD account, close price 1.08500, initial account 10,000 USD, entry volume 0.01 lots, current spread 1 pip:
| Unit | Activation | Offset | Distance | Break-even | Locked profit |
|---|---|---|---|---|---|
| Pips | 100 | 20 | 100 pips | 9.90 USD (0.10%) | 1.90 USD (0.02%) |
| Money (account ccy) | 500 | 50 | 500.00 USD | 500.00 USD (5.00%) | 50.00 USD (0.50%) |
| % of equity | 3.0% | 0.5% | 3.00% of equity | 300.00 USD (3.00%) | 50.00 USD (0.50%) |
With the 100 pips activation, the effective distance is 100 pips minus the 1 pip spread: 99 pips × 0.01 lots = 9.90 USD.
How it works together with Stop Loss
Break-even works independently: once the activation level is reached, the engine enforces the moved stop even when no Stop Loss feature is configured. Before the activation, a position without a Stop Loss has no fixed stop.
Configure the Stop Loss together with Break-even to give every position a fixed initial stop. When the activation level is reached, the break-even level replaces the stop. The engine never moves the stop against the position, so the better level of the two stays active.
Break-even and Take Profit
When both Break-even and Take Profit are enabled, the activation value cannot be larger than the Take Profit: the Take Profit would close the position before the activation level is reached, so Break-even would never trigger.
- Same unit: the configured values are compared directly.
- Different units: the values are converted to money with the trade info calculator, so the comparison needs a loaded trade environment.
When the activation exceeds the Take Profit, the feature list shows the error 'The Break-even activation exceeds the Take Profit'; the Take Profit record is marked with "(Break-even beyond Take Profit)" and the Break-even record with "(Beyond Take Profit)".
Form fields
- Break-even: section header.
- Activation unit: pips, money, or % of equity.
- Activation value: the profit level that triggers the move.
- Locked profit (offset): how much profit stays protected after the move.
- Trade environment preview: read-only calculated table.