New: the Top 10 Non-Repainting MT4 Indicator Pack is free to download

92 free indicators for MetaTrader 4 & 5

Position Size Calculator Indicator MT4

Free position size calculator indicator for MT4. Drag stop and target lines to get lot size, risk, pip value and reward:risk. Settings and install guide. Free download, link emailed in seconds.

MT4Non-repaintingInformational
Data Windowposition-size-calculator-indicator-mt4
PlatformMT4 Build 600+
File.mq4 / .ex4 in .zip
Version1.0
Size6.5 KB
RepaintsNo
TypeInformational
UpdatedNov 22, 2026
DownloadsNew listing
Download free (6.5 KB)
  • Enter your email, the download link arrives in seconds
  • Free bonus reports on the next page

Indicators are analysis tools, not trade signals. Forex trading on margin carries a high risk of loss. Test on a demo account first.

EURUSD · H4 · previewPosition Size Calculator Indicator MT4 v1.0
Position Size Calculator Indicator MT4 on EURUSD H4Non-repainting
How it works →
Overview

The Position Size Calculator indicator for MT4 works out the correct lot size for your trade right on the chart. Set your risk as a percent of equity or a fixed amount, drag the stop line to where your stop belongs, and the panel shows the lot size, the money at risk, the pip value per lot and, if you place a target line, the reward-to-risk ratio. It never places or changes orders.

It is the chart version of our online position size calculator, built for traders who want the answer without leaving MetaTrader 4.

What Is the Position Size Calculator Indicator?

Position sizing decides how much you lose when a stop is hit. Risking the same percentage on every trade means a wide stop gets a small position and a tight stop gets a larger one, so each loss costs about the same. Doing that math by hand for every trade is slow and easy to get wrong, especially on cross pairs or metals where one pip is not worth a round number.

This indicator reads the stop distance from a line on your chart and the contract details from your broker, then does the calculation every second. You see the result before you open the order ticket.

How the Calculation Works

1. Entry, stop and direction

  • By default the entry is the live market price. If the stop line is below the Bid the trade is treated as long and the entry is the Ask. If the stop line is above the Bid it is treated as short and the entry is the Bid. Using the Ask for longs means the spread is included in the stop distance.
  • With UseEntryLine set to true, a blue entry line appears and the calculator uses its price instead, which is useful for pending orders. Long or short is then decided by whether the stop line is below or above the entry line.
  • With UseStopLine set to false, the stop is a fixed StopLossPips away from the entry in the DefaultDirection.

2. Money at risk

If RiskMoney is above zero, that fixed amount is used. Otherwise the risk is RiskPercent of your account equity (or balance, if you choose BASE_BALANCE). Equity includes the floating profit or loss of open trades, balance does not.

3. Lot size

The code reads five values from the broker for the current symbol: tick value, tick size, lot step, minimum lot and maximum lot. Then:

  • Loss per 1.00 lot = stop distance / tick size x tick value
  • Raw lots = money at risk / loss per 1.00 lot
  • Lot size = raw lots rounded down to the broker’s lot step, so the real risk never exceeds your setting

If the result is below the broker’s minimum lot, the panel shows 0 and tells you how much you would risk at the minimum lot, so you can decide whether to widen your risk or skip the trade. If it is above the maximum lot, it is capped and flagged.

Example: with 10,000 USD equity and 1 percent risk, the money at risk is 100 USD. On EUR/USD with a 5-digit quote, tick size 0.00001 and a tick value of 1 USD per lot, a 20-pip stop loses 200 USD per lot. 100 / 200 = 0.50 lots.

4. Pip value and reward:risk

Pip value per 1.00 lot is one pip divided by tick size times tick value. A pip is 10 points on 5-digit and 3-digit quotes and one point otherwise. If the take-profit line is on the correct side of the entry, the panel shows the target in pips and the ratio of target distance to stop distance, such as 2.00 : 1.

Key Features

  • Lot size from percent risk or a fixed money amount, based on equity or balance.
  • Draggable stop, take-profit and optional entry lines. The panel updates as soon as you drag.
  • Rounds down to the broker’s lot step and respects minimum and maximum lot size.
  • Shows actual money at risk after rounding, as an amount and a percent.
  • Pip value per standard lot in your account currency.
  • Reward-to-risk readout from the take-profit line.
  • Timer-based refresh, so values stay current between ticks.
  • No trading functions: it cannot open, modify or close positions.

How to Trade With the Position Size Calculator Indicator

  1. Attach the indicator to the chart you plan to trade and set RiskPercent (or RiskMoney).
  2. Drag the red stop line to your planned stop: below the swing low for a long, above the swing high for a short.
  3. Drag the green line to your target if you use one, and check that the reward:risk ratio meets your rules.
  4. Copy the lot size from the panel into the order ticket and place your order with the same stop price.

Stops work best when they sit outside normal noise. The Candle Pips indicator shows the average candle range, which helps you judge whether a stop is too tight. Signal tools such as the 3 EMA Crossover indicator or the Supply and Demand indicator give you the levels, and the calculator gives you the size.

Best Settings

  • RiskPercent: many traders use between 0.5 and 2 percent per trade. Pick a level you can sustain through a long losing streak.
  • RiskBase: balance gives a steadier figure while trades are open. Equity adjusts automatically after open trades move.
  • UseEntryLine true: when planning limit or stop orders away from the current price.
  • PanelCorner: move it away from the one-click trading panel if you use it, for example to CORNER_LEFT_LOWER.

Line Behavior and Limitations

  • If you delete one of the lines, it is recreated at its default distance on the next refresh. Set UseStopLine or UseTakeProfitLine to false to remove a line for good.
  • When you change the timeframe or the inputs, the lines keep their positions. When you switch the chart to another symbol, they are reset to default distances for the new symbol.
  • Removing the indicator removes the panel and all of its lines.
  • For pairs where your account currency is not the quote currency, the broker’s tick value is converted at current rates, so the result is an estimate that can shift slightly as rates move.
  • On metals, indices and crypto, check how your broker defines a pip. The lot size is still correct because it uses tick size and tick value directly, but the pip readout follows the 10-points-per-pip rule only on 3- and 5-digit symbols.

Does It Repaint?

No. The panel is a calculator, not a signal. It shows no arrows or historical values, so there is nothing to repaint. It simply recalculates from your current account and line positions.

How to Install

Copy “position-size-calculator-indicator-mt4.mq4” to File > Open Data Folder > MQL4 > Indicators, restart MT4 or refresh the Navigator, and drag it onto the chart. Step-by-step help is in how to install indicators in MT4. Because it is an indicator and not an Expert Advisor, it does not need AutoTrading enabled.

Related Tools

Position sizing controls how much a losing trade costs but does not make a strategy profitable. Trading on margin carries a high level of risk, so practice the workflow on a demo account first.

Repaint verdict: does not repaint. We read the source: every value is calculated on closed bars and never rewritten, so what you see in history is what you would have seen live.

Free pack

Get the Top 10 Non-Repainting Indicator Pack

Ten MT4 indicators that draw on closed bars only, in one zip with install notes for each.

Settings

Inputs, defaults and what they change

  • RiskPercent (default 1.0) — Percent of equity or balance to risk per trade. Used when RiskMoney is 0.
  • RiskMoney (default 0.0) — Fixed amount to risk, in account currency. Any value above 0 overrides RiskPercent.
  • RiskBase (default BASE_EQUITY) — BASE_EQUITY uses AccountEquity(); BASE_BALANCE uses AccountBalance().
  • StopLossPips (default 20.0) — Stop distance used to place the stop line the first time, and the fixed stop when UseStopLine is false.
  • DefaultDirection (default DIR_LONG) — Long or short, used for first line placement and when there is no stop line.
  • UseStopLine (default true) — Read the stop from a draggable red line.
  • UseEntryLine (default false) — Read the entry from a draggable blue line. When false the calculator uses the live Ask (long) or Bid (short).
  • UseTakeProfitLine (default true) — Show a draggable take-profit line and the reward:risk ratio.
  • TakeProfitRR (default 2.0) — Where the take-profit line is first placed, as a multiple of the stop distance.
  • EntryLineColor (default clrDodgerBlue) — Entry line color.
  • StopLineColor (default clrRed) — Stop line color.
  • TakeProfitColor (default clrLimeGreen) — Take-profit line color.
  • PanelCorner (default CORNER_LEFT_UPPER) — Chart corner for the panel.
  • PanelX (default 10) — Panel distance from the corner, horizontal pixels.
  • PanelY (default 25) — Panel distance from the corner, vertical pixels.
  • PanelWidth (default 290) — Panel width in pixels.
  • FontSize (default 9) — Panel font size.
  • PanelTextColor (default clrWhite) — Panel text color.
  • PanelHighlight (default clrGold) — Color of the lot size line.
  • PanelBackground (default C’25,30,35′) — Panel background color.
  • RefreshSeconds (default 1) — How often the timer refreshes the panel, in seconds.
Install

How to install it in MetaTrader 4

  1. Step 1Download and unzip

    Enter your email, open the download link we send you and extract the .mq4 / .ex4 file from the zip.

  2. Step 2Open the data folder

    In MetaTrader, go to File → Open Data Folder.

  3. Step 3Copy into Indicators

    Place the file in MQL4 → Indicators, then restart MetaTrader or refresh the Navigator panel.

  4. Step 4Attach it to a chart

    Find it under Navigator → Indicators and drag it onto any chart.

First time installing an indicator? Watch the 75-second video or follow the screenshots in our MT4 install guide: every click in MetaTrader, plus fixes for an indicator that won't show up.

Free forex calculators
FAQ

Position Size Calculator Indicator MT4 questions

Decide how much money you will risk, measure the stop distance, then divide the risk by the loss per lot at that stop. This indicator does it automatically using your broker’s tick value and tick size, and rounds down to the allowed lot step.

No. The MT4 order window asks for a volume but does not calculate it from your risk. You need a custom indicator like this one, or an online calculator such as the one on our forex tools page.

Balance ignores open trades and gives a steady figure. Equity includes floating profit and loss, so it automatically reduces size after open trades move against you. Both are common; pick one and use it consistently.

The risk you set is too small for the stop distance at the broker’s minimum lot size. The panel shows how much you would risk at the minimum lot so you can widen the risk, tighten the stop or skip the trade.

No. It contains no trading functions and cannot open, change or close orders. You copy the lot size into the order ticket yourself.

Many traders choose between 0.5 and 2 percent of their account per trade, but the right figure depends on your strategy and tolerance for drawdowns. Smaller percentages make long losing streaks easier to survive.

Position Size Calculator Indicator MT4
Size
6.5 KB
Version
1.0
Repaints
No
Download free
Free packTop 10 Non-Repainting Indicators

Ten closed-bar MT4 indicators in one zip.

Get the pack

Position Size Calculator Indicator MT4Free · 6.5 KB

Download

Where should we email your download link?

Use an email you can check right now: the download link goes straight to this inbox.