Home / Blog / MT4 Position Size Calculator — Free Download

MT4 Position Size Calculator — Free Download

MT4 Position Size Calculator: the Lot Size Calculator 2.10 panel on a EURUSD H1 chart, with its four features: drag the line to your stop-loss, risk as a percentage of equity, the real risk at the broker's lot limits, any symbol suffix and your account currency

Drag a line to your stop-loss, set your risk %, and this free MT4 indicator returns the lot size for your risk — no manual pip math. Download it below, unzip it, copy the .ex4 file into your MQL4/Indicators folder, and it calculates position size live on any chart.

DIRECT DOWNLOAD (opens in a new tab)

At barmenteros FX, we have been building custom MetaTrader tools and Expert Advisors since 2011. This position size calculator is a free tool — the problem it solves is universal: traders who size positions correctly survive losing streaks; traders who don’t, don’t.

Importance of Position Sizing in Forex Trading

Position sizing in Forex trading is essential for both risk management and maximizing potential profits. Accurate position sizing helps traders:

  • Protect their trading account from significant losses.
  • Maintain consistent risk exposure across different trades.
  • Preserve their trading capital for the long term.

Inadequate position sizing can lead to poor risk management, causing large drawdowns or wiping out an entire trading account. A balanced approach to position sizing enables traders to remain in the market and make informed decisions, ensuring long-term success.

The traders who fail are often not those with bad strategies — they are traders who are correct on direction but oversized on entries. A 50-pip adverse move on a 0.01-lot micro position is noise. The same move on a 1.0-lot position against a $1,000 account is a margin call.

For a deeper look at how lot size errors compound inside automated systems, see Your EA Calculates Lot Size Wrong (And Your Broker Won’t Tell You).

Position Sizing Methods: Fixed %, Fixed Amount, Volatility

There are several methods for calculating position sizes, catering to different trading styles and risk tolerance levels. Some popular methods include:

  • Fixed Percentage: Traders risk a fixed percentage of their account balance on each trade. This method maintains a consistent risk level across trades and adjusts with the account balance. It is the approach we recommend for most EAs — it scales naturally with account growth.
  • Fixed Amount: Traders risk a predetermined monetary amount on each trade, irrespective of their account balance. This method is simple but may lead to disproportionate risk exposure as account size changes.
  • Volatility-Based: Position sizing is adjusted according to market volatility, typically measured by indicators like the Average True Range (ATR). This method accounts for changing market conditions and reduces risk during periods of high volatility.
MethodHow it sizes the tradeBest forRisk profile
Fixed PercentageRisks a set % of account equity per trade (e.g. 1–2%)Most traders; scales with the accountSelf-adjusting — shrinks after losses, grows after wins
Fixed AmountRisks a fixed cash amount per trade (e.g. $50)Fixed-risk discipline, small accountsStatic — does not scale with equity
Volatility-basedSizes from ATR / recent volatility so risk is even across instrumentsMulti-instrument / basket tradingAdapts to market conditions, not account size

Understanding and choosing the right position sizing method for your trading strategy can help you manage risk effectively and improve overall performance.

Examples and Case Studies

To illustrate the importance of proper position sizing, consider two hypothetical traders with a $10,000 account balance:

  • Trader A risks 5% of their account on each trade. After five consecutive losses, their account balance drops to $7,737.81 — a 22.6% decline.
  • Trader B risks 1% of their account on each trade. After five consecutive losses, their account balance drops to $9,509.90 — a 4.90% decline.

This example highlights how smaller position sizes help protect a trader’s account and preserve capital for future trades. The deeper implication: Trader A needs a 29.2% gain just to return to break-even after those five losses. Trader B needs 5.15%. The math compounds in both directions.

Free Download & Install — MT4 Lot Size Calculator

Our free MT4 Position Size Calculator simplifies the process of calculating the appropriate position size. Follow these steps:

  1. Download the MT4 Position Size Calculator (opens in a new tab) and unzip the downloaded file.
  2. In MT4, open File → Open Data Folder, then MQL4/Indicators/, and copy Lot Size Calculator.ex4 into that folder.
  3. Restart MT4, or right-click the Indicators folder in the Navigator and select Refresh.
  4. Drag Lot Size Calculator from the Navigator onto your chart.
  5. Set the Risk Percent input to the percentage of your account equity you’re willing to risk on this trade.
  6. Drag the line to your stop-loss level. Until you do, it follows the price, marked No stop, and the panel shows no risk-based size. From then on the lot size updates by itself when the price moves, when you move the line and when you change the risk.

Sizes are rounded down to your broker’s lot step. If the result is below your broker’s minimum lot, the calculator shows the minimum and the panel warns that it risks more, with the real figure, for example “risks 4.00 % (target 1.00 %)”. At your broker’s maximum lot it shows the real figure too. Check the lot size before you trade.

Upgrading from v1.3 or earlier? Remove the old indicator from your charts and add the new one once; later updates keep the same name.

Lot Size Calculator 2.10 panel on a EURUSD H1 chart: sell, stop 102.2 pips, risk 2.00% of equity, target risk 95.90 USD, position size 0.09 lots

The calculated lot size appears directly in the panel on the chart.

For traders building EAs that automate this calculation, see our MQL4 programming guide — position sizing implementation is one of the core topics covered.

Broker Compatibility: Symbol Suffixes and Non-Standard Assets

Most brokers use standard symbol names (EURUSD, GBPUSD, USDJPY); some add a suffix (EURUSDpro, EURUSDi, EURUSD.pro). The calculator needs no setting for this: it takes the lot size from the chart symbol’s own specifications, and when it needs a currency conversion it finds the pair by its currencies, not by its name.

For indices and commodities (US30, US500, NAS100, XAUUSD): CFDs are sized from the contract size and tick size your broker publishes, futures from their tick value, with the currency conversion applied when needed. The result is only as good as your broker’s symbol specifications. If the calculator shows the alert “Misconfigured symbol on trading server – zero unit cost.”, your broker reports a zero tick value for that symbol; check its contract specification with your broker.

For JPY pairs: nothing to set. The lot size comes from the price of the stop-loss line, not from a pip count; the pip label on the line uses 0.01 on JPY pairs, whether quoted with 2 or 3 digits.

If the Experts tab reports that no conversion pair was found, your broker offers no pair the calculator can use to convert to your account currency: contact us with that line.

Additional Tips for Successful Position Sizing

Apart from using our MT4 Position Size Calculator, consider the following:

  • Review your trading strategy regularly to ensure that your position-sizing methods still align with your overall risk tolerance and trading objectives.
  • Adjust your position sizes based on market conditions or changes in your personal financial situation.
  • Keep a trading journal to track your position sizes, risk exposure, and overall performance. Analyze periodically to identify areas for improvement.
  • If you hold more than one position at a time, size them against combined exposure rather than one trade at a time — see position sizing with multiple open positions.

Frequently Asked Questions

How does the MT4 Position Size Calculator handle different account currencies?

The indicator reads your live account equity from MetaTrader and uses the current ask price to convert pip values to your account’s base currency. If your account is denominated in EUR, GBP, JPY, or another currency, the conversion happens automatically using live exchange rates from your broker’s feed — no manual adjustment is needed.

Note: the calculator uses account equity, not account balance. Equity includes the floating profit or loss of any open positions. This gives a more accurate picture of available capital when sizing new trades and prevents oversizing entries when you already have open drawdown.

Can the calculator be used for multiple assets, including commodities and indices?

Yes. It sizes forex pairs, metals and indices from the contract specifications your broker publishes for each symbol, so results are only as accurate as those specifications.

How do I adjust the calculator settings for different position sizing methods?

The calculator implements fixed-percentage sizing by default. Set your risk percentage in the Risk Percent input parameter — you can also change this directly from the panel on the chart without reopening the settings dialog.

For fixed-amount sizing: calculate the equivalent percentage manually (risk amount ÷ account equity × 100) and enter that value as your risk percentage.

For volatility-based sizing: calculate your stop-loss distance using your ATR reading first, then drag the indicator line to that level. The calculator handles the lot size computation from the stop distance you provide.

Understanding these concepts is essential when interpreting the calculator’s output.

If you need a position size calculator built directly into a custom EA, hire an MT4 programmer from our team.

37 responses to “MT4 Position Size Calculator — Free Download”

  1. The google drive download link says 403 error not found. Can y0u re-upload it?

    Thanks

    1. Hi Dave,

      Thank you for bringing this to our attention. We’ve just tested the Google Drive link and it appears to be working correctly on our end. However, we understand that you’re experiencing issues with it.

      To ensure you receive the file without further delay, we’re going to send it directly to your email. We hope this resolves the issue for you.

      Thank you for your patience and cooperation. Should you encounter any further issues, please don’t hesitate to let us know.

  2. you are just the best. thank you so much for this simple and very useful indicator. this indicator literally saved me

    1. Glad to hear it. Thanks for your comment

  3. Thanks for this indicator. It’s nice and useful.
    However, for indices instruments like US30/US500/US2000 etc, the lot size is not correct. I suspect it is related the different specification (digits/contract size) from currencies instruments?

    1. Hi. Thanks for your feedback. Can you send us a screenshot showing an example of wrong lot size and what should be the correct size in this case? If possible, tell us what calculation you use for getting the lot size or if you use a different tool to get the right size calculation. Best regards

  4. Rex Amadi-Woluchor

    Please accept my thanks for this wonderful script!

    1. Thank you for your comment. You’re welcome. Best regards

  5. ALEXANDER DOLL

    Thank you for this little gem, very handy.

    1. You’re welcome, Alexander. Regards

  6. I tried the current version of the tool v1.2., but it does not work.

  7. I tried using the calculator but it does not work. When I click the Lot size button it does not show the size.
    I see the following messages in ‘Experts’ tab of Terminal window.
    2021.01.08 01:10:10.220 Lot Size Calculator v1.2 AUDJPYi,H4: GetPipValue » fail to get pip value for AUDJPYi

    2021.01.08 01:18:39.218 Lot Size Calculator v1.2 AUDJPYi,H4: GetPipValue » fail to get pip value for AUDJPYi

    2021.01.08 01:18:39.218 Lot Size Calculator v1.2 AUDJPYi,H4: IsSymbolList » JPYUSD’AUDJPY’ (Unknown symbol)

    2021.01.08 01:08:04.332 Lot Size Calculator v1.2 EURNZDi,H1: IsSymbolList » NZDUSDEURNZD pro >> pro (Unknown symbol)

    2021.01.08 01:06:22.541 Lot Size Calculator v1.2 EURNZDi,H1: GetPipValue » fail to get pip value for EURNZDi

    Please what can I do to make it work?
    Regards.

    1. Hi. Type ‘i’ in ‘Symbol Suffix (eg: XXXXXXpro » pro)’ input parameter of the indicator. Keep us posted. Best regards

      1. Hello, Thanks for you reply, but you instruction is not clear. I do not understand what you mean by ”Type ‘i’ in ‘Symbol Suffix (eg: XXXXXXpro » pro)’ input parameter of the indicator”.
        Please can you show exactly what you want me to input? using AUDUSD pair for example.
        Regards.

        1. Hi. If the name of your pair is AUDUSD with no suffix, you don’t need to do anything. However, if the name of your pair includes a suffix (e.g.: AUDUSDi) you have to type that ‘i’ in ‘Symbol Suffix (eg: XXXXXXpro » pro)’ input parameter of the indicator as shown in this screenshot: https://snipboard.io/Ivda8L.jpg (opens in a new tab). Hope it helps you. Regards

          1. Thanks so much. It works.

          2. You’re welcome. Regards

  8. Anyway to create two more lines? For Pending order and for TP, that way, the indicator would show the risk reward as well. For the pending order line, we would be able to choose an entry point for the calculation of the lot size and risk reward.
    Better yet if it was made into an EA, that way, it would calculate all of that AND we would just need to click buy/sell button made by the EA.

    What do you say?

    1. Hi Felipe,
      Thanks for your recommendations. We’ll take them into consideration for future updates.
      Best regards

  9. Dewa Setiawan

    hi, I am Dewa from Bali island Indonesia. I am trying to googling for this type of indicator which can help me for the money management. After I installed to my MT4 it’s look really helpful. only one question for you, this percentage is from the current balance or start balance? i thank you very much hard work making this indicator.

    1. Hi Dewa. The indicator uses the account equity. Thanks and best regards

  10. Choy Jian Hao

    Came across this site while I was googling for this indicator instead of toggling between website and mt4 to find the lot size base on my risk percentage. All I can say, this indicator really saves time even for just few secs which makes a lot of difference especially in FX trading. Looking forward to improvement and other useful indicators. Keep it up, TS.

    1. Hi Choy. Glad to hear that this indicator is useful to you! Thanks for your feedback. Kind regards

  11. I tried using it but it doesnt work. When I click the Lot size button it doesnt show the size. I also have a gray circle on the Lot Size Cal in the navigator tab. I did some research and it seems that I may need to compile the mq4 file as well. DO u have that? or a workaround.

    1. Hi Tyrone. Are you getting any error message in ‘Experts’ tab of Terminal window? If so, what’s the message? Otherwise, send us a screenshot showing the error. Gray circle in the navigator tab is not a problem. You don’t need the mq4 file in order for the indicator to run properly. Thanks

      1. Thanks fr the quick response. Yes I actually do get an error message. I cant seem to post a screenshot. But the error message says

        “2020.04.14 13:49:20.668 Lot Size Calculator v1.0 CADCHF…..,M15: IsSymbolList » USDCHF (Unknown symbol)”

        “2020.04.14 13:49:20.668 Lot Size Calculator v1.0 CADCHF…..,M15: IsSymbolList » CHFUSD (Unknown symbol)”

        “2020.04.14 13:49:20.668 Lot Size Calculator v1.0 CADCHF…..,M15: GetPipValue » fail to get pip value for CADCHF…..”

        I think the reason why its not working is due to the naming convention of my broker for the currency pairs. It adds 5 fullstops after the XXXXXX, and maybe that causes the “unknown symbol” error message. Or maybe its something else.

        1. Thanks for the report. A new version is available now. You can enter the suffix of your symbols in the input parameter ‘Symbol Suffix (eg: XXXXXXpro » pro)’, so if your symbol is ‘CADCHF…..’ you should enter ‘…..’ in the input parameter ‘Symbol Suffix (eg: XXXXXXpro » pro)’. This new version also shows the risk percent in the panel so the user will be able to change it directly from the panel. Best regards

          1. Omg, thank you so much, it works like a charm now. Also love the new feature. You rock!!!

          2. Glad to hear it. Thanks for the feedback. All the success

  12. Great Indicator guys. so simple and yet so useful. Kudos !

    1. Glad to hear it, Jason! Thanks for your feedback. Best regards

  13. justice

    hello i cant find the place to put the % amount am willing to risk

    1. Hi. You can set the risk in the input parameter ‘Risk Percent’. Regards

  14. Donovan

    How do i take this off of my chart, even when its deleted it wont get off

    1. Hi. Just click on the closing icon [X] on the top right corner of the indicator’s window. Regards

    2. ANTHONY

      How do I use it on an JPY FX pair, it does not work.

      1. Please, send us a screenshot to [email protected] showing what’s not working. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

Get a free quote

Fixed price within 24–48 hours. No subscriptions, no demos.