ProTradingManager: automatic break-even and moving the SL/TP
Set the automatic break-even, move the stop loss and take profit with the mouse, and understand why a button does not react.
ProTradingManager is the free trade-management EA for MetaTrader 5. Download it from the Trade Manager page.
The panel buttons are in French and the status messages in English: this article quotes them as the EA shows them.
The automatic break-even
Set the break-even in the panel's BE field, as a multiple of R (the distance between the open price and the current stop loss). For example, with 1: as soon as the position gains as much as it risks, the EA moves the stop loss to the open price.
Click the BE field and type the value in R, for example
1.5or1,5.Confirm with Enter or by clicking elsewhere on the chart. The value
0turns break-even off.When the threshold is reached, the status line shows Break-even applied.
Good to know:
- The stop is placed exactly at the open price, with no buffer. Commission and swap can therefore leave the trade slightly negative.
- The setting applies to every position on the chart's symbol, including positions opened by hand or by another EA.
- The take profit is not changed.
- The value is not saved: after putting the EA back on the chart or restarting MetaTrader, the field goes back to
0.00.
Why break-even does not trigger
- The BE field is 0, or the value was not confirmed (Enter).
- The position has no stop loss. Without a stop, the EA cannot compute R.
- The stop is already at the open price or beyond.
- The gain has not reached the threshold yet. R is computed from the profit MetaTrader shows, without swap or commission, and from the distance of the current stop.
- The price is too close to the open price for the minimum distance your broker requires. The EA tries again on the next tick.
- The market is closed. Break-even is checked on every new price; without prices, nothing happens.
If the broker refuses, the status line shows Modify failed followed by the reason.
Trailing stop
ProTradingManager has no trailing stop. You can, however, move the stop loss by hand as shown below.
Move the SL and TP
In the panel's position table, click the position's row.
Drag the red band (stop loss) or the green band (take profit) in the area on the right of the chart.
Release: the EA sends the change. The status line shows Position updated.
- If the level is refused (SL too close to price, TP too close to price, or an SL on the wrong side of the price), the line snaps back.
- A position without a stop loss or take profit has no matching band: add that level in MetaTrader.
- If the panel shows Afficher (Show), the lines are hidden: click it to bring them back.
Buttons do not react
If MetaTrader's Algo Trading button is off, or Allow Algo Trading is not ticked in the EA's Common tab, orders are refused. The status line then shows Order failed or Modify failed.
Other common causes:
- ACHAT (buy) or VENTE (sell) is greyed out. Only the direction that matches your stop is active: stop below the price for a buy, above it for a sell.
- ACHAT and VENTE are both greyed out. A position is selected in the table: click Nouvelle position (new position). In risk mode (amount or %), the status line can also show Place SL line first (place the stop loss line first) or Invalid sizing value.
- An order is being sent. The buttons stay locked until it is confirmed.
- Closing a position takes two clicks on its cross within 3 seconds. Tout fermer (close all), however, closes every position on the symbol without asking.
- The panel is minimized. The BE field is hidden, but break-even keeps working.