Breakeven Bot
- Utilities
-
Gabriel Paul Ange Perrin
I publish products for MetaTrader on the MQL5 Market: Breakeven Bot, SL Manager, Daily PnL Notifier, Zone Limite and Sentora. - Version: 8.0
- Updated: 8 November 2026
Breakeven Bot is a trade management utility for MetaTrader 5. It protects open positions by moving the Stop Loss to breakeven, at the entry price plus the minimum stop distance of your broker, once a trade is in profit. It also gives you two buttons and two price fields to manage several positions at once.
What it does
The utility checks the open positions every 500 milliseconds. When a position has moved far enough in profit, its Stop Loss is placed at breakeven, so a pullback closes the trade near the entry price instead of at a larger loss. Spread and commission still apply. You choose the distance in pips or as a profit amount in account currency.
Example: a Buy opened at 1.1000 with the default level of 5 pips is protected once the price is above 1.1005 plus the minimum stop distance of your broker. Its Stop Loss then goes to 1.1000 plus that distance.
You can also apply the breakeven by hand with one click, or move the Take Profit of losing positions to the entry price.
Main features
- Automatic breakeven - moves the Stop Loss to breakeven when the level you set is reached.
- BREAKEVEN button - applies the breakeven to all open positions with one click.
- REVERSE BE button - moves the Take Profit of losing positions to the entry price, with an optional buffer in pips.
- TP PRICE and SL PRICE fields - set a Take Profit or Stop Loss price on the open positions and pending orders of the chart symbol.
- Safe Stop Loss - the SL PRICE field never moves the Stop Loss of an open position that is already at breakeven or in profit.
REVERSE BE works for positions that are in loss. With a buffer of 0, the Take Profit is placed exactly on the entry price, so a return of the price to the entry closes the trade with a small loss equal to spread and commission. A buffer above 0 shifts the Take Profit that many pips into profit to cover those costs.
How to use
- Attach Breakeven Bot to any chart and allow algorithmic trading.
- Set the breakeven type and level in the inputs (default: 5 pips).
- Leave the utility running. Every open position that reaches the level gets its Stop Loss moved to breakeven.
- Click BREAKEVEN to apply the breakeven at once, without waiting for the level. Only positions where your broker allows the new Stop Loss are changed.
- Click REVERSE BE to place the Take Profit of losing positions on the entry price.
- Type a price in TP PRICE or SL PRICE and press Enter. The price is applied to the open positions and pending orders of the chart symbol. The price stays active, also for positions opened later on this symbol, until you enter 0. It is applied only on the valid side of the current price: a Stop Loss below the price for a Buy, above it for a Sell, and the Take Profit the other way round.
The panel is drawn on live charts, not in the Strategy Tester.
Inputs
Breakeven trigger
- BreakevenType (Breakeven Type) - Pips or Account Currency: how the trigger level is measured.
- TriggerBreakEvenPoints (Breakeven Level Pips) - distance in pips the price must move in profit before the breakeven, default 5. One pip is 10 points.
- TriggerBreakEvenAmount (Breakeven Amount) - profit in account currency a position must exceed when the type is Account Currency, default 10.
- BreakEvenPositvePoints (Breakeven Positive Pips) - 0 puts the Stop Loss at breakeven, a higher value places it that many pips further in profit. The minimum stop distance of the broker is always added.
Orders
- slippage (Slippage / Max. Deviation) - maximum deviation in points accepted for the modification requests, default 10.
- ReverseBEBufferPoints (Reverse BE Buffer Pips) - 0 puts the Take Profit exactly on the entry price, a higher value shifts it that many pips into profit.
What it does not do
The utility does not open trades and does not choose entries. A trade is closed only by its own Stop Loss or Take Profit. It does not guarantee any result, and trading involves risk.
Important: the automatic breakeven and both buttons apply to all open positions of the account, on every symbol and whatever their magic number, not only to the chart where the utility runs. Only the TP PRICE and SL PRICE fields are limited to the chart symbol. Attach the utility only if this is what you want.
Support
Questions or suggestions: use the Comments tab of this page or send me a message through my MQL5 profile: https://www.mql5.com/en/users/centralia
Other product: Zone Limite, a free utility for MetaTrader 5: https://www.mql5.com/en/market/product/206822
