Risk Position Tool MT4
- Yardımcı programlar
- Sürüm: 1.3
Risk Position Tool MT4 is a free position size calculator for MetaTrader 4. Drag the entry, stop-loss and take-profit lines on the chart. It shows the lot for your risk, the money at the stop and target, the reward:risk ratio and the margin.
It only calculates. It never places, changes or closes an order, so it is safe on any account.
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 and panel 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 the indicator to the chart of the symbol you trade.
- Press BUY or SELL. The three lines appear. The stop is 1.5 x ATR(14) from the entry and the target is 2 x the stop.
- In the inputs, set "Risk measured as" and "Risk per trade".
- Drag the lines. The chart shows the plan as a box: a loss zone and a profit zone, with the price, money and R on each line. The panel shows the full numbers. CLEAR removes them.
What it shows
- Lot size: for a risk set as a % of the balance, a % of the equity, or a fixed amount of money.
- Rounding: the lot is rounded down to the broker's lot step. The money at the stop is never above your risk. Below the minimum lot, it says so and shows what that lot would risk.
- Stop and target: the money at each, the distance in points and the reward:risk ratio.
- 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.
- Margin: what the lot needs, with a warning when free margin is short.
- 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.
- Entry: the line follows the price until you drag it.
- Memory: the lines stay put after a timeframe change.
On the chart
- Risk/reward box: the loss zone (entry to stop) and the profit zone (entry to target) are drawn behind the candles, so price stays readable.
- Line tags: "SL price, money, % of balance" and "TP price, money, R" at the right end of the box, and the side and lot on the entry. Hover a line for the same numbers.
- 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.
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 placed | 1.5 x ATR(14); target - 2 x the stop |
| Risk/reward box on the chart | on |
| Colours | auto, from the chart background (or dark, light) |
| Colour-blind friendly (blue/orange) | off |
| Line colours, panel corner, margins, font size | - |
| Debug log for bug reports | false |
How it was checked
- Code check: the tool sizes with its own code. That code was run in the MetaTrader 4 Strategy Tester on EURUSD and XAUUSD. All 944 lots matched an independent calculation from the tick value. The 455 trades closed at their first stop lost what the panel showed.
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 |
|---|---|---|
| UT Bot Signal Alerts MT4, SuperTrend Signal Alerts MT4 or Range Filter Signals MT4 | Put the indicator on the chart for the idea. Drag the entry and stop lines of the tool. | The indicator shows where. The tool gives the lot for your risk. |
| Prop Rules Monitor MT4 | Attach it to a chart of a prop account. | It shows your distance to the firm's limits while you size trades. |
| Session Levels MT4 | Add it to the same chart. | It draws session boxes and previous day and week levels as context. It is not a signal. |
Related products
- Risk Position Tool - the same indicator for MetaTrader 5.
- All my products on MQL5
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 tool calculates a position size; it does not predict the market.
