Trade Sentinel MT5 - User Manual

4 August 2026, 11:02
Inakis Srl
0
3

TRADE SENTINEL MT5 — USER MANUAL v1.04

Product link:

MT5: https://www.mql5.com/en/market/product/185803

Trade Sentinel is a manual trading panel: draggable Entry, SL and TP lines, lot sizing from risk, one-click market and pending orders, breakeven, trailing, multiple take profits, a basket engine that manages groups of trades as one, and an equity monitor with daily and total loss protection. This manual covers version 1.04.

Every section below starts with a short explanation of what that part of the panel is for, followed by the instructions and the reference tables. If you are setting the EA up for the first time, read sections 0 to 3 in order; the rest can be used as a reference.


Summary


Trade Sentinel panel on the chart


0 — IMPORTANT INFORMATION

What this section is about. Trade Sentinel is a tool you drive, not a robot that trades for you. It sends the orders you click, and from that moment it keeps watching them — breakeven, trailing, partial take profits, basket exits, equity guard. Understanding where that management lives, on your PC or on the broker's server, is the difference between a protected trade and an exposed one, so please read these few points before the first use.

The rules that matter

  • The panel does not run in the Strategy Tester. MetaTrader generates the Market demo from the tester only, so the demo button on the product page will not show the panel. Test it on a demo account instead.
  • One chart, one instance. Attach the EA to the chart of the symbol you want to trade. Settings are saved per symbol.
  • AutoTrading must be ON in the terminal toolbar, and Allow Algo Trading must be ticked in the EA properties, otherwise no order can be sent.
  • The EA must stay attached for the automatic functions to work. If the terminal is closed, nothing is managed — only the real SL and TP stored on the broker's server stay active.
  • Hidden SL/TP is virtual. With Hide SL/TP ON the levels live on your PC, not on the server: if MetaTrader is closed, the trade is unprotected.
  • Works on any symbol: forex, metals, indices, crypto, CFDs.
  • Several charts at once are fine. Since version 1.04 the drawing and management engine only works when something actually changes, so the EA can stay attached to all your pairs without loading the terminal.


1 — INSTALLATION

What this section is about. Getting the EA onto a chart takes about a minute. If you bought Trade Sentinel on the Market, MetaTrader has already installed it for you and you only need steps 5 to 8; the first steps are for a manual copy of the file.

Step by step

  1. In MetaTrader 5 open File → Open Data Folder.
  2. Go to MQL5\Experts\.
  3. Copy Trade Sentinel.ex5 into it. Market purchases install themselves: you will find the EA under Market in the Navigator.
  4. Restart MetaTrader, or right-click in the Navigator and choose Refresh.
  5. Drag Trade Sentinel onto the chart of the symbol you want to trade.
  6. In the properties window, Common tab: tick Allow Algo Trading.
  7. Inputs tab: keep the defaults for the first run and press OK.
  8. Make sure the AutoTrading button in the toolbar is active.

The panel appears in the top-left corner of the chart. Drag its title bar to move it anywhere; the position is saved and restored the next time you open that symbol.


2 — THE ON-CHART PANEL

What this section is about. Everything happens in one small window on the chart: a title bar with three quick buttons, six tabs, and a live line at the bottom that always tells you how much is open and how it is doing. Learn these three areas and the rest of the manual is just detail.

The panel is DPI-aware, so it stays sharp on 4K monitors, and it comes in a dark and a light theme.

2.1 — Title bar. The quick controls you use all day: move the panel, decide what is drawn on the chart, and switch the theme.

ControlWhat it does
Title (drag)Moves the whole panel. The position is saved per symbol.
Eye buttonCycles what is drawn on the chart: show all tradesshow only the trades managed by this EAhide all.
News buttonShows or hides the economic-calendar lines for the two currencies of the chart symbol.
Theme buttonSwitches between the dark and the light theme.

2.2 — Tabs. Each tab is one job. Opening a trade, splitting its exit, closing groups, managing a basket, guarding the account, setting defaults.

TabPurpose
TradeOpen a new trade with risk-based lot sizing; breakeven and trailing defaults.
TPsSplit the exit into multiple partial take profits.
CloseClose groups of positions with one click; partial close on everything.
Multi TradesThe basket engine: TP, SL, breakeven and trailing applied to many positions as one.
Equity MonitorDaily and total loss limits, trading lock, midnight guard.
SettingsPanel preferences and trading defaults.

2.3 — Info line. Under the tabs the panel always shows how many positions are currently managed and their floating profit or loss, so the exposure stays visible while you work in another tab.


3 — TAB REFERENCE

What this section is about. One block per tab: first what the tab is for and when you would use it, then every control described in a table. Use it as a lookup while the panel is in front of you.

3.1 — Trade

This is the order ticket. You choose how much risk to take, where the stop and the target go, and the panel turns that into a volume and shows the money involved before you click. The lower half of the tab arms the automatic protection that the same trade will receive once it is open.

Trade tab

ControlDescription
Mode (cycle button)Lot sizing mode: Risk % of the base, Risk $ (fixed money at the SL), or Lot (fixed volume).
SizeThe value for the selected mode: percent, money, or lots.
= n lotRead-only preview of the volume that will actually be sent, computed from the SL distance.
RRRisk/Reward. Typing a value moves the TP to that multiple of the SL distance.
Sp:Live spread, in the current distance unit.
SL / TPStop loss and take profit for the next order, in points or price (the unit button toggles it). Above each field the panel shows the money at risk and the potential profit.
EntryEntry price for pending orders. Zero means the market price.
LinesDraws the draggable pre-trade Entry/SL/TP block on the chart (section 4).
Cmt / Magic nComment and magic number used for the new orders.
Buy / SellSend a market order now.
Buy Stop / Sell Stop / Buy Limit / Sell LimitSend the corresponding pending order at the Entry price.
Breakeven — Auto, unit, trigger, offsetArms the automatic breakeven on the managed trades (section 6).
Trailing — On, unit, start, dist, stepArms the trailing stop (section 6).
Apply to all <SYMBOL> tradesWhen ON, breakeven, trailing and the close buttons act on every position of the chart symbol, including trades opened by hand or by another EA. When OFF, only the trades carrying this EA's magic number are managed.

The Breakeven and Trailing unit buttons cycle through Points, RR, % Balance and % of TP distance, so the same field can mean "200 points", "1 R", "0.5 % of the balance" or "half the way to the take profit".

3.2 — TPs (multiple take profits)

Instead of one target for the whole position, this tab prepares a staircase: a part of the trade is closed at each level, the rest keeps running. You set it up before placing the order, and every new order gets that layout. Up to eight levels are available.

TPs tab - multiple take profits

  • Multiple TPs — On/Off: arms the feature for the orders you place next.
  • The two column headers are mode selectors (click to cycle):
    • Size mode: percentage of the initial lot, percentage of the lot still open at that level, or a fixed lot.
    • Level mode: auto (evenly spaced between entry and the final TP), points from entry, absolute price, RR multiples of the SL distance, percentage of the entry price, or percentage of the entry-to-TP distance.
  • One row per take profit: the level, how much it closes, and an x to remove it. + Add TP adds a row.
  • The total closed is shown at the bottom; rows left on auto share what remains.
  • The armed levels are drawn on the chart as lines you can drag.

To put multiple take profits on a trade that is already open, or on a pending order, use the ... menu of its chart block (section 4.4).

3.3 — Close

The panic-and-housekeeping tab. Instead of closing positions one by one, you close a whole category with a single click, or shave a percentage off everything at once. Each button tells you in advance how many trades it will touch and what they are worth.

Close tab

ButtonAction
Close ALLCloses every managed position.
Close in profitCloses only the winning positions.
Close losingCloses only the losing positions.
Close Buys / Close SellsCloses one side only.
Del pendingsDeletes all managed pending orders.
Close % of allPartial close of every position by the percentage typed in the field.
Close % + BE allThe same partial close, then the stop of what remains is moved to breakeven.

What counts as "managed" depends on the Apply to all switch of the Trade tab: with it OFF only this EA's trades are affected, with it ON every trade on the symbol.

3.4 — Multi Trades (the basket)

When you scale into a move, hedge, or run a grid, the individual profit of each ticket stops being meaningful — what matters is the total. This tab makes the terminal think the same way: it sums a group of positions and closes them together on a group target, a group stop, a group breakeven or a group trailing. Full explanation in section 7.

Multi Trades tab - basket engine

ControlDescription
ScopeWhich trades belong to the basket: All, Magic, Pair, or Tkt (hand-picked tickets).
Magics (CSV) / Pairs (CSV)The lists used by the Magic and Pair scopes.
Remove trades' SL/TPWhen ON, the individual SL and TP of the members are removed so only the basket exit applies. Default OFF.
UnitHow the numbers below are read: account currency, points, or percent of balance.
Close — TP / SLGroup take profit and group stop loss. Zero means off.
BE — Arm / ExitBasket breakeven: once the group profit reaches Arm, the group is closed if it falls back to Exit.
Real SL at avg priceWhen the basket breakeven arms, a real stop loss is written on every member at the basket average price.
TS — Start / Lock%Basket trailing: once the group profit reaches Start, the basket is closed if the profit drops below Lock% of its peak.
Turn basket ONArms the basket; the same button stops it.
Close allCloses every member now.
Select membersOpens the window where the tickets are ticked by hand (Tkt scope).
Info linesLive members, group profit or loss, average price, peak, and the distance to the active exits.

3.5 — Equity Monitor

This tab does not care about single trades: it watches the account. You give it a daily loss limit and a total loss limit, and it decides what happens when they are reached — a warning, a full close, a lock until tomorrow. It is the prop-firm discipline applied to any account, including your own. Full explanation in section 8.

Equity Monitor tab

ControlDescription
Equity monitor On/OffMaster switch. The lines above show balance, equity, the day's profit or loss, and the countdown to broker midnight.
Daily loss / TotalThe two limits. The unit button switches them between percent and account currency.
Daily baseWhat the daily limit is measured from: equity at 00:00, balance at 00:00, or the higher of the two (strictest).
Total baseA typed value, the first deposit of the account, or the highest equity ever seen (trailing drawdown).
ActionAlert notifies only; Close closes all positions and deletes the pendings; Lock closes all and blocks new orders until the next broker day; Term closes all and then the terminal.
Warning alertsOne early warning per day, per limit, at 80 % of the limit.
Midnight guardCloses the floating losses shortly before the broker daily reset: set the minutes before midnight and the float percentage that triggers it.
Reset lockClears a lock manually after a limit has been hit.

Note: in the version published on the MQL5 Market the Term action raises an alert instead of closing the terminal.

3.6 — Settings

The defaults the rest of the panel works with: what your risk percentage is measured on, what a "point" means on this symbol, when an order must be refused, and how much of the chart clutter you want to see. Set it once per symbol and forget it.

Settings tab

SettingDescription
Risk % baseBalance or equity — the base the risk percentage is applied to.
Distance unit (Point option)Point, x10 (pips on 3 and 5-digit symbols) or x100. Applies to every distance field.
Spread limitOrders are refused when the spread is wider than this value in points. Zero disables the check. The live spread is shown next to it.
Max slippageMaximum deviation accepted on market orders, in points.
Lines directionWhether the pre-trade block starts as a buy or a sell setup.
Basket resetWhat happens to the basket peak and lock when the membership changes: Rebase keeps the lock and adjusts it, Full starts over.
Hide SL/TP (virtual levels)Keeps stops and targets off the server; the EA closes the trade itself when a level is reached.
News shownImportance filter for the calendar lines: High, Medium and High, or all.


4 — CHART LINES AND TRADE BLOCKS

What this section is about. Half of Trade Sentinel lives outside the panel, directly on the price chart. A trade is not a row in a list: it is a block you can drag, expand, close or modify with the mouse, exactly where the price action is. Everything you drag recalculates the numbers on the panel, and every drop that changes a level is sent to the broker.

4.1 — The pre-trade block (before you open)

Press Lines on the Trade tab. A block appears with the Entry, SL and TP lines, the filled reward and risk zones between them, and a small toolbar with Place and X. It is the trade you are about to take, drawn on the chart before it exists.

  • Drag the Entry line to change the price: the order type (market or pending) follows the position of the entry relative to the market.
  • Drag SL or TP: lot size, money at risk, RR and potential profit update live on the panel and in the labels.
  • Drag the block sideways to park it where the chart is free — the price is not touched. Horizontal and vertical drags are independent.
  • Place sends the order exactly as drawn; X cancels.

4.2 — Open-position blocks

Once a trade is open it gets its own block on the chart, so you can manage it without going back to the panel.

  • A bar with type, lot, entry price and the current risk in account currency.
  • An X button that closes the position, with confirmation.
  • A ... menu (section 4.4).
  • Clicking the bar expands the SL and TP lines with their zones; clicking it again collapses them.
  • Dragging the SL or the TP line sends a real modification to the broker: what you see is what the server has.

4.3 — Pending-order blocks

Pending orders get the same treatment: entry bar, delete button, options menu, draggable SL and TP, and a draggable entry line that moves the order while keeping the SL and TP distances unchanged. Moving a planned trade is one drag, not a dialog.

4.4 — The "..." menu

Every action you may want on a single trade is one click away in this menu, including the two fields you would otherwise have to type somewhere else (the close percentage and the breakeven offset are editable inside the menu itself).

ItemAction
Close positionCloses it now.
Close n %Partial close; the percentage is editable inside the menu.
Close n % + BEPartial close, then the stop is moved to breakeven.
BE now (+offset)Moves the stop to the entry price plus the offset.
Show / Hide SL/TPExpands or collapses the levels of this trade.
Trailing: on/off (start/dist/step)Per-trade trailing override.
BE auto: on/off (trigger+offset)Per-trade automatic breakeven.
Change SL/TPPopup to type the levels instead of dragging them.
Multiple TPs: n / offOpens the partial take profit editor for this trade.
Basket: In / OutAdds or removes this ticket from the basket.

For a pending order the menu offers: delete order, show or hide SL/TP, change entry/SL/TP, and multiple TPs.

4.5 — The Multiple TPs editor

Reached from the menu above, this is how you add a staircase of exits to a trade that is already running — the TPs tab only arms new orders. One row per take profit with the level price and the lot to close, plus + TP, - TP, Clear and Apply. The rows are prefilled with the levels already armed, otherwise with the layout of the TPs tab applied to that trade. A row is refused when the level is on the wrong side of the entry, when the lot is below the broker minimum, or when the total exceeds the volume of the trade.

4.6 — The eye button

Three levels of chart cleanliness, one button:

  • Show all — the EA blocks and the terminal's own trade levels.
  • Show only managed — only the trades this EA manages, terminal levels off. The cleanest chart.
  • Hide all — nothing is drawn; the panel keeps working.


5 — LOT SIZING AND RISK

What this section is about. The volume is never something you guess. You decide how much you are willing to lose and where the stop goes; the panel derives the lot from those two numbers and shows you the money before the click. Change the stop by dragging it and the lot follows — the risk stays what you decided.

How the lot is computed

ModeHow the lot is computed
Risk %Risk money = base × percent / 100, where the base is the balance or the equity (Settings tab).
Risk $The typed amount is the money lost if the stop loss is hit.
LotFixed volume; the money at risk is shown for information.

The result is normalised to the broker's volume step, minimum and maximum, and to the available margin. Before the click the panel always shows the volume, the money at risk at the stop loss, the potential profit at the take profit, and the RR.

When a spread limit is set and the current spread is wider, the order is refused with a message — useful around news releases, where a widened spread would turn a good entry into a bad one.


6 — BREAKEVEN AND TRAILING

What this section is about. These are the two mechanisms that take a trade off risk and then let it run. Breakeven moves the stop to the entry once the trade has earned enough; trailing follows the price at a fixed distance. Both are armed on the Trade tab for every new trade, and both can be overridden per trade from the chart block.

How they behave

Automatic breakeven. When the profit reaches the trigger, the stop is moved to the entry price plus the offset, so the trade also covers its costs.

Trailing stop. Once the profit reaches start, the stop follows the price at distance, and it moves only when the improvement is at least step — which keeps the number of modifications low.

Both work on every trade the EA manages, and on every trade of the symbol when Apply to all is ON, including trades opened manually or by another EA. The trigger and the distances are read in the unit you select:

UnitMeaning
PointsRaw distance, in the chosen distance unit.
RRMultiples of the initial risk R, the SL distance recorded when the trade was opened.
% BalanceThe profit expressed as a percentage of the account balance.
% of TPA percentage of the distance between entry and take profit.


7 — THE BASKET ENGINE

What this section is about. A basket is a group of positions treated as a single trade: their profits and losses are summed, and one exit closes them all. It is what you want when several tickets are really one idea — a scaled entry, a hedge, a grid — or when you simply want to say "close everything when the day is +200".

How to use it

  1. Open the Multi Trades tab.
  2. Choose the Scope: All (every position of the account), Magic (the magic numbers in the list), Pair (the symbols in the list), or Tkt (the tickets ticked in Select members).
  3. Choose the Unit: account currency, points, or percent of balance.
  4. Fill only the exits you want — TP, SL, BE arm and exit, TS start and lock — leaving zero on the others.
  5. Press Turn basket ON.

Useful details

  • A negative TP caps a drawdown: the group is closed when the loss shrinks back to that level.
  • Real SL at avg price writes a genuine stop on every member when the basket breakeven arms, so the group survives a disconnection.
  • Remove trades' SL/TP, OFF by default, strips the individual levels so that only the basket decides.
  • Basket reset (Settings tab) decides what happens to the profit peak when a member joins or leaves: Rebase keeps the lock and adjusts it, Full starts the peak over.
  • The basket disarms itself when all its trades have been closed, so it cannot capture the next trades by surprise.


8 — THE EQUITY MONITOR

What this section is about. Stops protect a trade; this protects the account. It watches balance and equity against a daily and a total limit and, when one is reached, it acts on its own — warns you, closes everything, or locks trading until the next broker day. If you trade a funded account, this is the rule set you have to respect anyway; on your own account it is the rule set that keeps a bad day from becoming a bad month.

How to set it up

  1. Turn Equity monitor ON.
  2. Set the daily and the total limit, in percent or in money.
  3. Choose the two bases: what the daily loss is measured from (equity or balance at 00:00 broker time, or the stricter of the two) and what the total loss is measured from (a typed value, the first deposit, or the highest equity ever reached — a trailing drawdown).
  4. Choose the action: alert, close, lock, or terminal close.
  5. Optionally enable the warning alerts at 80 % of each limit.
  6. Optionally enable the midnight guard: a few minutes before the broker daily reset, if the floating loss is worse than the set percentage, the positions are closed — so a bad float does not become tomorrow's handicap.

When Lock fires, no new order can be sent from the panel until the next broker day; the Reset lock button clears it manually. The tab shows balance, equity, the day's result and the countdown to broker midnight at all times.


9 — SETTINGS, PERSISTENCE AND INPUTS REFERENCE

What this section is about. Where your configuration is stored, what survives a restart, and the complete list of the inputs you see in the EA properties dialog. The inputs are only the starting values: once the panel is running, what you change on the panel wins and is saved.

9.1 — Persistence

The panel settings are saved per symbol in MQL5\Files\TradeManager\<SYMBOL>.cfg and restored on the next attach, after a timeframe change and after a terminal restart. The initial risk R of every trade is stored in a global variable, so the RR-based breakeven and trailing keep working after a restart.

Two switches deliberately start from the input value on a fresh attach — Apply to all trades and the basket arming — so that a new chart never starts managing trades you did not ask for.

9.2 — Inputs

GroupInputDefaultMeaning
TradePoint optionPointDistance unit used by every points field
TradeLines default directionBuyDirection of the pre-trade block
TradeMagic number20260710Magic used for new orders
TradeOrder commentemptyComment attached to new orders
TradeManage ALL symbol positionsfalseStart with "Apply to all" ON
TradeMax slippage (points)10Deviation accepted on market orders
TradeSizing modeRisk %Risk % / Risk $ / fixed lot
TradeRisk % of the base1.0Percentage risked at the stop loss
TradeRisk $ at SL100Money risked at the stop loss
TradeFixed lot0.01Volume in Lot mode
TradeRisk/Reward2.0Default RR used for the take profit
TradeDefault SL (points)200Starting stop loss distance
BreakevenAuto breakevenfalseArms the automatic breakeven
BreakevenBE trigger unitPointsPoints / RR / % balance / % of TP
BreakevenBE trigger200Profit needed to move the stop
BreakevenBE offset (points)10Points beyond the entry price
TrailingTrailing enabledfalseArms the trailing stop
TrailingTrailing modePointsPoints / RR / % balance / % of TP
TrailingStart0Profit needed before trailing starts
TrailingDistance200Distance kept from the price
TrailingMin step10Minimum improvement before modifying
BasketBasket active at startfalseArms the basket on initialisation
BasketBasket scopeAllAll / magic / pair / ticket
BasketRemove members' SL/TPfalseStrips the individual levels
BasketBasket magics / pairs (CSV)emptyLists for the magic and pair scopes
BasketBasket unitMoneyMoney / points / % of balance
BasketBasket TP / SL0Group target and stop (0 = off)
BasketBasket BE trigger / offset0Group breakeven
BasketReal SLs at avg price when BE armsfalseServer-side protection for the group
BasketBasket trail trigger0Profit that starts the group trailing
BasketBasket trail lock (%)75Percentage of the peak that is kept
BasketLock reset on membership changeRebaseRebase or full reset
BasketDisarm basket when all its trades are closedtruePrevents capturing the next trades
SettingsRisk % baseBalanceBalance or equity
SettingsSpread limit (points)0 (off)Refuses orders on a wide spread
SettingsHide SL/TP (virtual levels)falseKeeps the levels off the server
SettingsTrades on chartHide unmanagedShow all / only managed / hide all
SettingsShow calendar newstrueDraws the news lines
SettingsNews importance shownHighHigh / medium and high / all
PanelUI themeDarkDark or light
PanelPanel X / Y20 / 20Starting position on the chart

The equity monitor is configured entirely from its own tab and saved in the per-symbol configuration file.


10 — TIPS, FAQ AND TROUBLESHOOTING

What this section is about. The questions that come up most often, with the one-line answer and where to fix it. Almost every "it does not work" turns out to be one of the first three.

The Buy and Sell buttons do nothing.
Check AutoTrading in the toolbar and Allow Algo Trading in the EA properties. If a spread limit is set, a wide spread also refuses the order; the reason is printed in the Experts log.

Breakeven and trailing ignore my manual trades.
Turn Apply to all <SYMBOL> trades ON in the Trade tab, or open them with the same magic number.

RR-based breakeven or trailing on a trade opened elsewhere.
The initial R is taken from the stop loss distance recorded when the EA first saw the trade. If the trade had no stop loss at that moment, use the Points unit instead.

The basket closed everything at once.
That is what a basket exit does: the group TP, SL, breakeven or trailing closes all members. Use the Tkt scope when only a hand-picked subset should be involved.

The multiple take profits did not fire.
Partial closes need the EA attached and running; every row must be at least the broker's minimum lot, and the sum of the rows cannot exceed the volume of the trade.

Hidden SL/TP and a closed terminal.
Virtual levels only exist inside MetaTrader. If the protection must survive a disconnection, use real levels, or the basket option Real SL at avg price.

The panel looks incomplete after a timeframe change.
It rebuilds itself automatically; clicking any tab forces the redraw.

A good first setup.
Demo account, risk 0.5 %, default stop loss, RR 2, breakeven at 1 R, trailing off, equity monitor ON with a daily loss of 3 % and the Lock action. Then adapt it to your own trading plan.


11 — LINKS AND SUPPORT

What this section is about. Where to get the product, and how to reach me if something does not behave as described here. Bug reports and feature requests are welcome — several features in this manual came from users.

Product page: Trade Sentinel MT5

Questions, bug reports and feature requests: private message to the author on MQL5.com.

When reporting a problem, please include the broker, the symbol, the MetaTrader build, a screenshot of the panel and the relevant lines of the Experts log.

Manual for version 1.04. Features and defaults may change in later versions.