This MetaTrader 5 expert advisor is a utility for managing active positions and controlling account risk rather than executing autonomous trade entries.
MT5 Trade Manager features an automated lot size calculator based on percentage risk, daily loss protection in both percentage and dollar terms, and a comprehensive trade management suite. Users can configure automatic break-even adjustments, partial position closing, and trailing stops using either fixed pip distances or ATR-based volatility. The EA includes a visual dashboard for monitoring account health and halting trading if maximum loss limits are reached.
Daily loss protection and trading halt
Automatic lot sizing based on risk percentage
ATR-based or fixed pip trailing stops
Partial position management and break-even automation
Read from MT5_Trade_Manager.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
RiskPercent
double
1.0
Risk % per trade
DailyMaxLossPercent
double
3.0
Daily Max Loss %
DailyMaxLossDollars
double
0.0
Daily Max Loss $ (0 = use %)
StopTradingOnMaxLoss
bool
true
Halt & close all on max loss
ManualStopLossPips
double
20.0
SL in pips for lot calc
MinLotSize
double
0.01
Minimum lot size
MaxLotSize
double
100.0
Maximum lot size
BreakEvenTriggerPips
double
15.0
Pips profit to trigger auto-BE
BreakEvenBufferPips
double
2.0
Buffer pips beyond entry
AutoBreakEven
bool
false
Enable automatic break-even
PartialClosePercent
double
50.0
% of position to close
UseTrailingStop
bool
false
Enable trailing on init
Show all 26 inputs
Name
Type
Default
Description
TrailingMode
ENUM_TRAIL_MODE
TRAIL_FIXED
Trail mode
TrailingStopPips
double
20.0
Fixed trail distance (pips)
TrailingStepPips
double
5.0
Minimum move step (pips)
ATR_Period
int
14
ATR period (ATR mode)
ATR_Multiplier
double
1.5
ATR multiplier (ATR mode)
PanelX
int
20
Panel X position
PanelY
int
50
Panel Y position
PanelBG
color
C'18,22,34'
Panel background
PanelBorder
color
C'42,54,82'
Panel border
TextColor
color
C'200,210,230'
Normal text
GreenColor
color
C'0,200,130'
Profit / OK
RedColor
color
C'220,60,80'
Loss / danger
AccentColor
color
C'80,140,255'
Accent / buttons
WarnColor
color
C'255,180,0'
Warning
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone ifeoluwaezekiel129-png/mt5-trade-manager from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
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