Move Stop To Breakeven is a trade management expert advisor for MetaTrader 4 and 5 that automatically secures open positions by adjusting stop-loss levels.
Once a trade reaches a user-defined profit distance in points, the EA moves the stop-loss to the entry price or a specified buffer level. It features options to account for swaps and commissions, perform partial position closing, and filter trades by magic number or symbol. The utility includes a graphical control panel and visual trigger lines on the chart for monitoring.
Automatic stop loss adjustment to breakeven
Partial close functionality for profit taking
Swap and commission adjustment for true breakeven
Multi-criteria order filtering and symbol selection
Read from MQLTA MT4 Move Stop To Breakeven.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Comment_1
string
====================
Expert Advisor Settings
DistanceFromOpen
int
500
Points of distance from the open price
AdditionalProfit
int
0
Additional profit in points to add to BE
AdjustForSwapsCommission
bool
false
Adjust for swaps & commission?
PartialClosePercentage
double
0
Partial close % (0 = disabled, 1-99)
Comment_2
string
====================
Orders Filtering Options
OnlyCurrentSymbol
bool
true
Apply to current symbol only
OnlyType
ENUM_CONSIDER
All
Apply to
UseMagic
bool
false
Filter by magic number
MagicNumber
int
0
Magic number (if above is true)
UseComment
bool
false
Filter by comment
CommentFilter
string
Comment (if above is true)
Show all 31 inputs
Name
Type
Default
Description
EnableTrailingParam
bool
false
Enable Breakeven EA
Comment_3
string
====================
BE Trigger Line Display
ShowBELines
bool
false
Show BE trigger price lines
BELineColor
color
clrGold
BE line color
BELineStyle
ENUM_LINE_STYLE
STYLE_DASH
BE line style
BELineWidth
int
1
BE line width (1-5)
BELabelFontSize
int
8
BE label font size
Comment_4
string
====================
Notification Options
EnableNotify
bool
false
Enable notifications feature
SendAlert
bool
false
Send alert notifications
SendApp
bool
false
Send notifications to mobile
SendEmail
bool
false
Send notifications via email
Comment_5
string
====================
Graphical Window
ShowPanel
bool
true
Show graphical panel
IndicatorName
string
MQLTA-MSBE
Indicator name (to name the objects)
Xoff
int
20
Horizontal spacing for the control panel
Yoff
int
20
Vertical spacing for the control panel
ChartCorner
ENUM_BASE_CORNER
CORNER_LEFT_UPPER
Chart Corner
FontSize
int
10
Font Size
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/Move-Stop-to-Breakeven from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
3Copy the filesCopy the .mq4 / .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This MetaTrader expert advisor functions as a trade manager that automates stop loss adjustments for existing positions. It specifically waits until a trade reaches a user-defined profit threshold in points before initiating a trailing stop. The tool includes flexible filtering options to manage specific symbols, magic
Trader Pad is a trade management utility for MetaTrader 5 designed to automate position exits and risk control after an entry is initiated. The software handles stop-loss and take-profit placement in ticks, providing advanced trailing stop logic and break-even functionality. It allows users to scale out of positions th
This trade manager for MetaTrader 4 and 5 automatically adjusts the stop-loss levels of open positions using the Average True Range indicator. It allows users to define the trailing distance through a configurable ATR period and multiplier. The expert advisor includes filtering logic to apply the trailing stop only to
PSAR Trailing Stop is a management utility for MetaTrader 4 and 5 that automates the adjustment of stop-loss levels for open positions. Instead of manual movement, it follows the Parabolic SAR indicator values to lock in profits or minimize losses as a trend progresses. The software includes filtering options to target
This expert advisor is a utility for MetaTrader 4 and MetaTrader 5 designed to manage stop-loss levels for existing trades. It utilizes Bill Williams' Fractals indicator to dynamically adjust the stop loss as new fractal points form on the chart. Users can configure the number of bars to scan and specify which fractal
This visual trade management utility for MetaTrader 5 assists manual traders with order execution and risk management. It features interactive chart lines for entry, stop loss, and take profit levels, allowing for drag-and-drop price adjustments. The system automatically calculates position sizes based on a defined per