Expert Advisor for MetaTrader 5

MT5 Trade Manager: a robot for the trades you open yourself

What is the Trade Manager?

The Trade Manager is an Expert Advisor (a robot) for MetaTrader 5 that manages the trades you open yourself. It never opens a trade: it has no entry rules, and its code contains no order that opens one. It only changes a stop or a target, closes a trade or part of it and, when Guard stops the day, deletes a waiting order.

The Simple version is free with an account. You switch on the steps you want on the site and get one file for MetaTrader 5.

An example trade

What the robot does, one step at a time

Four of its rules on a made-up price path. Choose a step, or press Play.

PriceEntrySafety stopRobot sees the tradeStop set

1. You open a buy without a stop loss. When the robot first sees the trade, it sets a stop at the distance you chose. A stop you set yourself is kept.

Step 1 of 4

An illustration of the rules on a made-up price path: not a test, not a forecast and not a real account. Your trades will differ.

What it does

The steps, in the order a trade lives

Safety stop and target

If you open a trade without a stop loss (or a take profit), the robot sets one. A stop or a target you set yourself is kept. If your broker refuses the level, or the price has already passed it, the trade can be left without one — see the limits below.

Close part of the trade

It closes a share of the trade at a level, at a distance or at a price you type in MetaTrader; the rest stays open. A part is rounded down to your broker's volume step. When it is smaller than the smallest volume the broker allows, that level is skipped and the robot tells you.

Protect the entry

Once the price has moved far enough your way, the stop moves to the entry price (breakeven).

Follow the price

A trailing stop follows the best price and never moves back. It trails by a fixed distance, by ATR or by the last candles.

Close at a time

It closes every trade the robot manages at a set time, for example before the weekend.

Guard

Guard watches the equity of the whole account. At your limit it closes every open trade on the account, also other robots' trades, and deletes waiting orders. After the daily loss stop it closes any new trade it sees until the next trading day; after the maximum drawdown stop, until you reset it in the robot's settings. Guard cannot stop you from placing a trade; it can only close it. The price can move between the limit and the close, so the loss can be larger than your limit.

Lock my plan

The robot puts your stop back when you move it (and your take profit, if you choose). It cannot stop you from closing a trade or from switching the robot off, and it never reopens a trade you closed. The lock helps you keep your plan; it cannot force you.

Phone messages

The robot sends a short message to the MetaTrader app on your phone when it acts. It needs your MetaQuotes ID in MetaTrader 5 and push notifications switched on in the terminal (Tools → Options → Notifications): if either is missing, nothing is sent. Messages wait in a queue and go out at most ten a minute; if some are left out, it tells you. A trade you open on your phone is managed once the terminal on your computer or VPS sees it.

The settings have the same names, units and checks as in our strategy builder.

Free and paid

Simple is free; the full version comes with a plan

Simple: free with an account

For every account, Free included:

  • One symbol: the chart's symbol
  • Safety stop and target
  • Close part of the trade: one level, at a distance or at a price
  • Protect the entry (breakeven)

Full, with Guard

In the Trade Manager plan, and included in Starter, Trader and Pro. Everything in Simple, plus:

  • Close part of the trade: up to three levels
  • Follow the price (trailing stop)
  • Close at a time
  • All symbols on the account
  • Guard: a daily loss stop, a maximum drawdown stop and the day start
  • Lock my plan
  • Phone messages

The price of each plan is on Pricing.

What it does not do

Before you use it: the limits

  1. It works only while MetaTrader 5 is running on your computer or a VPS, connected, with Algo Trading on. When the terminal is closed or the robot is removed, nothing is managed.
  2. It cannot stop you from placing a trade by hand.
  3. It cannot undo a trade you close, and it never opens a trade.
  4. Your broker sets a smallest distance between the price and a stop. When your level is closer, the robot sets it further away, so your stop can end up further away than you asked, and it tells you the level only once the trade shows it. If the broker refuses the level, or the price has already passed where your stop would go, the trade can be left without the robot's stop: check the trade and set a stop yourself.
  5. Guard is a tool. Keeping to your firm's rules stays your responsibility.
  6. At a Guard stop the loss can be larger than your limit: the price can move before the trades close.
  7. Use one Trade Manager per account, on its own chart (MetaTrader runs one robot per chart).
  8. Try it on a demo account first.

Read the guide: managing trades you open yourself in MT5.

Start

Build your trade manager

Create a free account, then open the Trade Manager in your dashboard: switch on the steps you want and get one file for MetaTrader 5. It is for MetaTrader 5 only: our TradingView scripts manage only their own orders.

A press of this button is counted as a plain total, with no cookie and no identifier.

Building an automated EA with its own stops, breakeven and trailing? That works in the MT5 EA builder; the article explains the choices: risk management inside an EA.

Questions about the Trade Manager

Does the Trade Manager open trades for me?

No. It has no entry rules, and its code contains no order that opens a trade. It only changes a stop or a target, closes a trade or part of it and, when Guard stops the day, deletes a waiting order.

Does it work when my computer is off?

No. It works only while MetaTrader 5 is running on your computer or a VPS, connected, with Algo Trading on. When the terminal is closed or the robot is removed, nothing is managed.

Does it manage trades I open on my phone?

Yes, once the terminal on your computer or VPS sees them. The robot runs in that terminal, not on your phone.

Does Guard keep me inside a prop firm's rules?

We make no promise about any firm's rules. Guard closes every open trade on the account when your own daily loss stop or maximum drawdown stop is reached, and the loss can be larger than your limit. Guard is a tool: keeping to your firm's rules stays your responsibility.

Does it work with TradingView or MetaTrader 4?

No. The Trade Manager runs only in MetaTrader 5. It does not work in MetaTrader 4 or TradingView; our TradingView scripts manage only their own orders.

What is free, and what comes with a plan?

The Simple version is free with an account: the chart's symbol, a safety stop and target, one partial close and breakeven. The full version, with up to three partial closes, the trailing stop, close at a time, all symbols, Guard, Lock my plan and phone messages, is in the Trade Manager plan and included in Starter, Trader and Pro. The prices are on the Pricing page.

How do I try it first?

Try it on a demo account first: open a small trade by hand without a stop and watch the robot set one. The line in the chart's corner shows what the robot is doing.