Risk Trade Manager MT4
- Utilitários
-
Allan Aparece Ninal
Desenvolvo indicadores e Expert Advisors para o MetaTrader 5.
Como trabalho:
- Cada indicador é verificado quanto a repintura: os sinais são decididos apenas em barras fechadas, e um teste tick a tick confirma que não mudam depois. - Versão: 1.4
- Atualizado: 28 novembro 2026
- Ativações: 5
Risk Trade Manager MT4 is a utility (Expert Advisor) for MetaTrader 4 that turns three chart lines into a correctly sized order, then manages the trade. Drag the entry, stop-loss and take-profit lines and read the lot for your risk. Press OPEN to send a market or pending order.
It opens a trade only when you press OPEN. It has no strategy and gives no signals.
Standalone: Everything is built in. You do not need to buy or install any other product named on this page.
MetaTrader 4 edition: the same lines, sizing, orders and trade management as the MetaTrader 5 version. In MetaTrader 4 the loss per lot comes from the tick value, and there is no broker dry run of the order (see Checks). A partly closed trade goes on as a new order ("from #..."), which keeps its R, its opening lots and the scale-out steps already done.
Quick start
- Attach it to the chart of the symbol you trade and turn AutoTrading on.
- In the inputs, set "Risk measured as" and "Risk per trade".
- Press BUY or SELL to place the lines. Drag them: the chart shows the plan as a box with the price, money and R on each line. Press OPEN, then CONFIRM within 5 seconds.
- Set the partial close, break-even and trailing stop in the inputs (0 = off).
What it does
Sizing
- Size: risk as a % of the balance, a % of the equity, or a fixed amount of money. The lot is rounded down to the broker's lot step, so the money at the stop is never above the risk you set.
- Commission: on accounts that charge commission, it is added to the money at the stop and taken off the money at the target. The lot is sized so the total stays within your risk. The figure comes from your own recent deals on the symbol, or you type it in. The spread needs no extra step: a buy opens at the ask and its stop fills at the bid, so the stop distance already contains it.
- Minimum lot: below it, the tool tells you so and shows what the minimum lot would risk, instead of rounding up.
- Loss per lot: from the symbol's tick size and tick value, measured on the stop rounded to the price the order is sent with. It works on forex, gold, indices and crypto in any account currency.
Sending the order
- Market or pending: while the entry line follows the price, it sends a market order. Drag the line and it sends a limit or stop order, chosen from where the line is.
- Checks: free margin, the lot limits and step, the broker's stop level, the spread, an open market and AutoTrading on. MetaTrader 4 has no order dry run like MetaTrader 5's. These checks use the symbol's limits and the free margin the terminal reports. The broker's server can still refuse an order they let through. The panel then shows the error.
- Confirmation on the chart: OPEN turns into CONFIRM with the side and lot for 5 seconds. A second press sends the order. Dragging a line or pressing another button cancels it, and nothing is ever sent from a drag. A pop-up window can be chosen instead.
On the chart
- Risk/reward box: the loss zone and the profit zone are drawn behind the candles.
- Line tags: "SL price, money, % of balance" and "TP price, money, R" at the right end of the box. The entry shows the side and lot.
- Colours: chosen from the chart background (dark or light) or set by hand. A colour-blind friendly option uses blue and orange. Every tag also says SL, TP, BUY or SELL in words.
Managing the trade
- Scale out: up to 3 partial closes, each at its own profit of x R (R = the stop distance at entry). Each closes a share of the opening volume, for example 50% at 1 R, 25% at 2 R and 15% at 3 R. Each step runs once per trade. The rest stays open for the target or the trailing stop. A step that would close less than the minimum lot is skipped. Each step shows on the chart as a dashed line with its share and R ("50% · 1R").
- Break-even: at x R, plus a few points to cover costs.
- Trailing stop: by ATR or by points, starting at x R. A stop only moves in the trade's favour, in steps of at least a tenth of R, so the broker is not sent a change on every tick.
- Buttons: close all, close half, break-even now.
- Scope: only the trades it opened, or every trade on the chart's symbol, manual ones included.
- Lock: while Prop Rules Guard MT4 has the account locked, it refuses new orders.
Good to know
- A trade without a stop loss has no R. It is not partially closed, moved to break-even or trailed.
- Management runs while the terminal runs. If the terminal is off, the stop and target sent with the order stay at the broker. Partial closes and trailing wait until it is back.
- R is stored per trade. Moving the stop later does not change the R levels, and a restart keeps them.
- It works on one symbol per chart.
Main inputs
| Input | Default |
|---|---|
| Risk measured as | % of balance (or % of equity, or fixed money) |
| Risk per trade | 1.0 |
| Commission (added to the risk) | from my recent deals on this symbol - or fixed per lot, or ignore |
| Commission per lot, open + close (when Fixed) | 0.0 |
| Stop distance when the lines are placed | 1.5 x ATR(14); target 2 x the stop |
| Magic number of this manager's trades | 771500 |
| Confirm an order | on the chart: OPEN, then CONFIRM within 5 seconds (or a pop-up window, or none) |
| Refuse new orders while Prop Rules Guard is locked | on |
| Manage | trades opened by this manager (or every trade on this symbol) |
| Partial close 1 | 50% of the opening volume at 1 R (0 = off) |
| Partial close 2, 3 | off (set a level in R and a %; each level above the one before, less than 100% in total) |
| Break-even | at 1 R, plus 10 points (0 = off) |
| Trailing stop | off (or ATR(14) x 2, or 300 points); starts at 1 R |
| Risk/reward box on the chart | on |
| Colours | auto, from the chart background (or dark, light); colour-blind friendly option |
| Panel | corner, margins, font size |
| Debug log for bug reports | false |
Strategy Tester
In the tester only, the manager opens demo trades from its own lines every few hours. You can watch the sizing, partial close, break-even and trailing in visual mode. On a live or demo account it never opens a trade by itself.
How it was checked
- Code check: the manager ran in the MetaTrader 4 Strategy Tester on EURUSD and XAUUSD, July to October 2026, with five settings. It opened 951 demo trades. Every one of the 944 lots matched an independent calculation from the tick value. The 455 trades closed at their first stop lost what the panel showed. There were 388 partial closes. Each came at or past its step's level, once per step and in order, with the right lots. 13 trades went through all three steps. All 961 stop moves went in the trade's favour. With a fixed commission of 7.00 per lot, every lot was sized on the loss at the stop plus the commission. The order pre-check refused a lot below the minimum, above the maximum, off the lot step or too big for the margin. The on-chart CONFIRM step sent nothing on a first press, after its time ran out, after a change of plan or after a cancel.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| Risk Position Tool MT4 | The free tool draws the same lines and lot without sending orders. Use it first to check the numbers. | Same sizing; no orders. |
| Prop Rules Guard MT4 | Put the Guard on one chart of the prop account. | The manager refuses new orders while the Guard's lock is on. |
| UT Bot Signal Alerts MT4 or SuperTrend Signal Alerts MT4 | Put the indicator on the chart for the idea. Send the order from the manager. | The indicator shows where. The manager sizes and manages the order. |
Keep "Manage" on the trades it opened if other EAs trade the same symbol.
Related products
- Risk Trade Manager MT5 - the same Expert Advisor for MetaTrader 5.
- Risk Position Tool MT4 - the same lines, lot size, risk and reward, without sending or managing any order.
- Prop Rules Guard MT4 - locks the account at a prop-firm limit. This manager refuses new orders while that lock is on.
- All my products on MQL5
Questions
- Will it make my trades profitable? No. It sizes and manages trades you decide on. It does not choose entries.
- Is the risk exact? The lot is rounded down to the lot step, so the risk is at or slightly below the amount you set. Slippage and gaps can make a stop fill further away.
- Does it work with other EAs? Yes. Set "Manage" to the trades it opened, so it leaves other EAs' trades alone.
Custom work
Want a custom version of this tool, or a new indicator or EA of your own? Order it through MQL5 Freelance and choose me as the developer: order through Freelance. Send your requirements, rules and the flow or algorithm you want. The whole order, payment and delivery stay inside MQL5 Freelance.
Found a problem?
- In the inputs, set "Debug log for bug reports" to true.
- Repeat what went wrong.
- Open the Experts tab in the Toolbox. Copy the lines that start with "DBG" and paste them in a comment on this page, with the symbol and timeframe.
- Set the debug log back to false.
The debug lines never contain your account number, name, server, balance or equity.
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading involves risk. This utility calculates and manages orders you choose; it does not predict the market.
