Skip to content
Forex Indicator System Thailand
Back to marketplace
UtilityUtility

Move Stop to Breakeven (breakeven stop tool)

A tool that moves the stop-loss to the entry price once profit reaches a set distance, with optional partial close

Move Stop to Breakeven (breakeven stop tool) on an MT5 chart
Example on an MT5 chart

Download this EA for free

Download right away. Nothing to fill in.

Version
1.05
Published
11/21/2026
File size
83 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.05Current11/21/2026 · 83 KB

    First release on this site.

How to use

Attach the EA to a chart and turn on Algo Trading. EnableTrailingParam defaults to false, so the EA does nothing until you press the button on the chart panel or set it to true.

DistanceFromOpen is in points (500 points equal 50 pips on a 5-digit symbol), and AdditionalProfit is in points too. PartialClosePercentage set to 0 turns the partial close off. The list of positions already partially closed is kept only in the EA's memory, so it is lost if the EA or the terminal restarts. Before using it on a live account, check the filters so you know exactly which positions the EA will pick up.

ShowBELines shows the trigger price lines, with colour, style, width and label font size options. Notifications work when EnableNotify is on and a channel is chosen.

Parameters

NameDefaultDescription
DistanceFromOpen500Profit distance in points from the open price that triggers moving the stop-loss.
AdditionalProfit0Extra profit in points locked above the open price when the stop-loss moves.
AdjustForSwapsCommissionfalsetrue = include swap and commission in the breakeven level.
PartialClosePercentage0Percentage of the position to close before moving the stop-loss (1-99). 0 = disabled.
OnlyCurrentSymboltruetrue = manage only positions on the chart's symbol. false = include positions on every symbol in the account.
OnlyTypeAllPosition type to manage: all, buy only or sell only.
UseMagicfalsetrue = manage only positions whose Magic Number matches MagicNumber.
MagicNumber0Magic Number used as a filter (when UseMagic is true). 0 is what manually opened positions carry.
UseCommentfalsetrue = manage only positions whose comment contains CommentFilter.
CommentFilterText that must appear in the position's comment (when UseComment is true).
EnableTrailingParamfalsetrue = start working as soon as the EA starts. false = wait for the panel button.
ShowBELinesfalsetrue = show the breakeven trigger price lines on the chart.
BELineColorclrGoldColour of the trigger lines.
BELineStyleSTYLE_DASHLine style of the trigger lines.
BELineWidth1Width of the trigger lines (1-5).
BELabelFontSize8Font size of the labels on the trigger lines.
EnableNotifyfalsetrue = turn the notification feature on.
SendAlertfalsetrue = show a popup alert in the terminal.
SendAppfalsetrue = send a notification to the MetaTrader mobile app (set up your MetaQuotes ID first).
SendEmailfalsetrue = send an email (set up SMTP in the terminal first).
ShowPaneltruetrue = show the control panel on the chart, with a button to switch the EA on and off.
IndicatorNameMQLTA-MSBEPrefix for the names of the panel objects on the chart.
Xoff20Horizontal distance of the panel from the chart corner.
Yoff20Vertical distance of the panel from the chart corner.
ChartCornerCORNER_LEFT_UPPERChart corner where the panel is placed.
FontSize10Font size of the panel.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

Move Stop to Breakeven moves the stop-loss of open positions to the entry price (plus extra profit set by AdditionalProfit, if any) once price has moved more than DistanceFromOpen points in profit. It moves only when the new stop-loss is better than the current one and not closer to the price than the broker's minimum stop distance. It opens no new trades and does not touch take-profit.

AdjustForSwapsCommission adds the position's swap and commission into the breakeven level. PartialClosePercentage closes that percentage of the position (1-99) before moving the stop-loss, once per position. The trigger price can be shown as lines on the chart.

Filters decide which positions are managed by symbol, buy or sell type, Magic Number and comment. There is a panel with an on/off button on the chart, and notifications when a stop-loss is moved.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.