Back to contents

Magic Entry · MT5 trade manager

Automatic break-even in MT5: the BE-TRG trigger and BE-OFST level

+BE on the entry card sets the BE-TRG trigger: when price reaches it, Magic Entry moves the stop to the BE-OFST level on its own, by default one tick in profit from the entry. If price then reverses, the trade closes without a loss. BE-OFST can be placed anywhere between the entry and BE-TRG, not only next to the entry.

+BE

Breakeven level

+BE on the entry card sets the BE-TRG trigger. When price reaches it, the stop moves to the BE-OFST level on its own — by default one tick in profit from the entry. If price then reverses, the trade closes without a loss.

  • BE-TRG — the price that triggers the move.
  • BE-OFST — where the stop moves to; it can be placed anywhere between the entry and BE-TRG, not only near the entry.
  • The move can be set up again any number of times.
Key B

How to set break-even

  1. Select the position or order card so its levels show on the chart.
  2. Click +BE on the entry card (or press B) and click the trigger price: the BE-TRG line is placed and break-even is on.
  3. Drag BE-OFST if the stop should move further than one tick, for example to cover commission.
  4. To get break-even on every new trade, set it in the DEFAULTS scheme; on first launch it is 0.8R with a $1 offset.
  5. Esc during placement cancels it and leaves break-even as it was. The move can be set up again any number of times.

Example: a buy at 1.10000 with the stop at 1.09500

The stop is 50 pips away, so 1R is 50 pips. With +BE placed at 0.8R, BE-TRG sits at 1.10400. When price reaches 1.10400, the stop moves to BE-OFST, one tick above the entry: 1.10001.

If price then falls back, the position closes at the entry plus one tick instead of losing 1R. With Spread ON, break-even keeps a spread’s distance from price.

Advisor inputs for this function

Set on the Inputs tab (F7) when you attach Magic Entry to a chart. Captions and defaults are the advisor’s own.

  • Set BE-TRG placement (auto-enable BE)HOTKEY_BE_TRIGGERDefault: B

    A click places the breakeven level and turns it on. Esc cancels placement, and breakeven stays as it was.

  • Breakeven linesLABELS_LINE_BEDefault: ON

    The same for the BE-TRG and BE-OFST breakeven levels.

  • SpreadSPREAD_CONTROLDefault: ON

    MetaTrader draws candles by Bid, but a sell closes at Ask — a spread above the candles. So a sell stop can trigger even though the candle never reached the line. If on, the advisor places the sell stop the current spread above the click and recalculates volume for the same risk.

    • A buy doesn't need this: it enters at Ask, so the spread is already inside its stop.
    • The wider the spread, the smaller the volume, while the money at risk stays the same: with a 100-point stop and a 30-point spread — 0.76 lots instead of 1.00.
    • An open position's take profit can't be set closer to price than the spread: for a buy — not below Ask plus spread, for a sell — not above Bid minus spread. Breakeven and trailing also keep a spread's distance.
    • Turn it off and the stop lands exactly at the click point, but the spread can knock a sell out.

    OFFSpread OFF: stop at the click point

    ONSpread ON: stop a spread higher

Other Magic Entry functions