
How to Set Position Sizing on MT5: Complete Tutorial
Table of Contents
- Introduction
- What Is Position Sizing on MT5
- Why Position Sizing Matters for Traders and Investors
- Core Concepts
- Step-by-Step Guide
- Practical Tips for Better Results
- Common Mistakes to Avoid
- Frequently Asked Questions
- Conclusion
Introduction
A trader buys EUR/USD with a 2-lot position on a $5,000 account. The stop-loss sits 80 pips away. Price hits the stop in under two hours. The account is down roughly $1,600 — about 32% of equity on a single trade. This is not a story about bad analysis. The entry timing might have been reasonable. The problem is position sizing: the trader risked far too much relative to account size, and the market punished that mistake with the kind of drawdown that takes months to recover from.
Learning how to set position sizing MT5 correctly is the single most impactful risk management skill a trader can develop. MetaTrader 5 gives you several tools to control trade volume — the manual order window, the built-in calculator, and programmatic automation through MQL5 Expert Advisors. Yet most retail traders still type in a round lot size based on gut feel, ignoring the relationship between stop-loss distance, account equity, and the dollar value per pip.
This set position sizing tutorial walks through the mechanics from the ground up. You will see how to calculate lot size from a fixed risk percentage, how to configure the MT5 order window for precise volume entry, and how to automate the entire process with an Expert Advisor so that emotional overrides become impossible. Every section includes a concrete trading scenario, because abstract formulas without context are useless when you are staring at a live order ticket.
What Is Position Sizing on MT5?
Position sizing is the process of determining how many units of an asset to buy or sell so that a losing trade costs a predetermined, acceptable amount of capital. On MT5, this translates to selecting the correct volume — expressed in lots — for each order you place. One standard lot in forex represents 100,000 units of the base currency. A mini lot is 10,000 units, and a micro lot is 1,000 units. The lot size you choose, combined with your stop-loss distance, determines the dollar amount you lose if the trade goes against you.
Consider a simple illustration. If you trade EUR/USD with a 50-pip stop-loss and a standard lot size, each pip is worth $10, so the trade risks $500. On a $10,000 account, that is 5% risk — well above the 1% threshold most professional traders consider prudent. The same stop-loss distance with a 0.2 lot size would risk $100, or 1% of the account. Same trade idea, same stop-loss, dramatically different outcome if the trade fails.
The distinction matters because position sizing is not about predicting market direction. It is about controlling the cost of being wrong. A trader who gets the direction right but sizes the position poorly can still blow up an account through a single bad stretch. A trader who gets the direction wrong but sizes correctly absorbs the loss, moves to the next setup, and keeps the account intact. The math is simple. The discipline required to execute it consistently is what separates professionals from the rest of the field.
Why Position Sizing Matters for Traders and Investors
Position sizing is the bridge between a trading strategy and account survival. A system with a 55% win rate and a 1:1 risk-reward ratio is profitable over a large sample — but only if no single loss is large enough to create a drawdown the account cannot recover from. A 50% drawdown requires a 100% gain just to break even. That mathematical reality is why position sizing matters more than entry signals, indicator settings, or market timing.
On MT5, the stakes are concrete. The platform connects you to a broker’s liquidity, and the margin system means that oversized positions can trigger margin calls before your stop-loss is even reached. During high-volatility events — a Federal Reserve rate decision, a nonfarm payroll release, or an unexpected geopolitical shock — spreads widen and slippage increases. A position that seemed manageable at normal market conditions can suddenly consume far more capital than planned. Traders who set position sizing based on a fixed risk percentage, rather than a fixed lot size, automatically reduce their exposure when volatility expands and stop-loss distances grow.
Ignoring position sizing has a predictable outcome. Over typical cycles, a trader who risks 5–10% per trade will experience a streak of consecutive losses that devastates the account. The math is unforgiving: five losses in a row at 5% risk per trade produces a 23% drawdown. At 10% risk, the same streak creates a 41% drawdown. Recovery from either level is difficult, and the psychological pressure often leads to revenge trading — which accelerates the losses further.
The relationship between risk per trade and long-term survival is nonlinear. Doubling your risk from 1% to 2% does not simply double your expected drawdown. It increases the probability of a catastrophic sequence, because losing streaks of six or seven trades become statistically more damaging. A trader risking 2% per trade needs only seven consecutive losses to face a 13% drawdown. The same streak at 5% risk produces a 30% drawdown. At 10%, the account is down 52%. The compounding effect works against you with the same force it works in your favor on winning streaks.
Lot Size Calculation Based on Account Equity and Stop-Loss Distance
The fundamental formula for risk-based position sizing is straightforward. You define how much capital you are willing to lose — typically 1% of account equity — and divide that amount by the stop-loss distance expressed in price terms. The result tells you the maximum position size that keeps risk within your tolerance.
Consider a $10,000 account trading EUR/USD. You decide to risk 1%, which is $100. Your analysis suggests a stop-loss 50 pips below entry. In forex, one pip on a standard lot of EUR/USD is worth $10. So the calculation is: $100 risk divided by (50 pips times $10 per pip) equals 0.2 lots. That is your position size. If the stop-loss is hit, you lose exactly $100 — not $500, not $1,000.
Now adjust the scenario. The same trader sees a setup on EUR/USD but the stop-loss needs to be 100 pips away because of wider-than-normal volatility — perhaps the VIX is elevated or a major economic release is pending. The calculation changes: $100 divided by (100 pips times $10) equals 0.1 lots. The position size shrinks automatically because the risk per pip is now spread across a larger distance. This is the core benefit of risk-based sizing: your dollar risk stays constant even as market conditions change.
The same logic applies to other instruments. On XAU/USD (gold), one standard lot typically controls 100 ounces. If gold trades at $2,000 per ounce and your stop-loss is $5 below entry, the risk per lot is $500 (100 ounces times $5). To risk $100 on a $10,000 account, you would trade 0.2 lots. The formula is identical — only the contract specifications change.
What makes this approach powerful is its adaptability. A trader who fixes lot size at 0.5 regardless of stop-loss distance is effectively gambling on an unknown risk. Some trades risk $100, others risk $500, and the trader has no consistent framework for evaluating performance. Risk-based sizing standardizes the cost of being wrong, which makes it possible to evaluate whether a strategy has a genuine edge or whether a few lucky trades are masking structural weakness.
MT5 Order Window Volume and Deviation Parameters
The MT5 order window is where calculation meets execution. When you press F9 or right-click a chart and select New Order, the trade dialog appears with several fields: symbol, volume (lots), stop-loss, take-profit, deviation, and order type. The volume field is where you enter the lot size you calculated. MT5 allows you to type a value manually or use the up/down arrows to step through available volumes.
The deviation parameter, measured in points, controls how much slippage you are willing to accept on a market order. If you set deviation to 20 points, MT5 will execute the order only if the market price is within 20 points of the price quoted when you clicked buy or sell. If price moves beyond that, the platform rejects the order and you get a requote. For position sizing purposes, deviation matters because slippage on entry affects your effective risk. If you calculated a 0.2 lot position based on a 50-pip stop, but slippage adds 3 pips to your entry price, your effective stop-loss distance is now 53 pips — and your actual risk is $106 instead of $100.
MT5 also displays the margin requirement for the volume you enter. This is the amount of free margin the broker locks up to maintain the position. If the margin exceeds your available free margin, the platform prevents the trade and displays an error. Monitoring this field is essential when trading during periods of heightened volatility, because margin requirements can change if the broker adjusts margin rates in response to market conditions. The CFTC and other regulators require brokers to maintain minimum margin levels, and brokers often raise requirements ahead of major events to protect themselves and their clients from excessive exposure.
The interaction between margin and position sizing is something many traders overlook. A position might appear to risk only 1% of equity at the stop-loss level, but if the margin requirement consumes 40% of the account, the trader is highly leveraged. A modest adverse move — not enough to hit the stop-loss — can still trigger a margin call if free margin drops below the maintenance level. The stop-loss protects against price risk. Position sizing, when done correctly, protects against both price risk and margin risk.
MQL5 OrderSend Request Volume Normalization
For traders who want to remove manual input entirely, MT5’s MQL5 programming language allows position sizing to be coded directly into an Expert Advisor. The OrderSend function is the core mechanism for submitting trades programmatically. One critical step in this process is volume normalization — ensuring that the lot size you calculate conforms to the broker’s volume step, minimum, and maximum constraints.
Every broker defines contract specifications for each symbol. These include the minimum volume (often 0.01 lots), the volume step (often 0.01), and the maximum volume. If your risk calculation produces a lot size of 0.237 lots but the broker’s volume step is 0.01, the EA must round down to 0.23 lots before submitting the order. Rounding up would increase risk beyond the intended amount. The MQL5 function SymbolInfoDouble with the SYMBOLVOLUMESTEP, SYMBOLVOLUMEMIN, and SYMBOLVOLUMEMAX parameters retrieves these values so the EA can normalize the calculated volume correctly.
A practical example: an EA monitors EUR/USD on the M15 timeframe. When a moving average crossover signals a long entry, the EA reads account equity, calculates 1% risk, measures the stop-loss distance from the current ATR (Average True Range), and computes the lot size. It then normalizes that volume to the broker’s step, checks that it meets the minimum, and submits the order via OrderSend with the stop-loss attached. The entire process takes milliseconds and removes the emotional decision-making that leads to oversized positions. This is particularly valuable for set position sizing advanced users who trade multiple symbols simultaneously and cannot manually calculate lot sizes for each one in real time.
The advantage of programmatic sizing extends beyond speed. An EA applies the same risk rule to every trade, every time, without exception. It does not get bored, impatient, or overconfident after a winning streak. It does not double down after a loss. For traders who struggle with discipline — which is most traders at some point — automation is not a luxury. It is a structural safeguard against the behavioral patterns that destroy accounts.
Step 1 — Define Your Risk Parameters Before Opening Any Trade
Before you touch the MT5 order window, write down three numbers: your account equity, your risk percentage per trade, and your stop-loss distance for the specific setup you are trading. Most professional traders risk between 0.5% and 2% of equity per trade. If you have a $10,000 account and choose 1% risk, your maximum loss per trade is $100. This number is non-negotiable for the trade you are about to enter.
Next, determine your stop-loss distance based on market structure — a support or resistance level, an ATR-based calculation, or a volatility band. Do not choose your stop-loss distance to fit a predetermined lot size. That is backwards. The stop-loss comes from the chart; the lot size comes from the stop-loss. If the stop-loss distance that makes technical sense produces a lot size too small to meet the broker’s minimum, you either accept a smaller risk amount or skip the trade.
The sequence matters. Traders who start with a lot size and then place a stop-loss to match are not managing risk — they are managing appearances. The stop-loss location should reflect where your trade thesis is invalidated. If that point is 100 pips away, the lot size must shrink to accommodate. If that point is 20 pips away, the lot size can grow. The risk amount stays fixed. Everything else adjusts around it.
Step 2 — Calculate the Lot Size Using the Risk Formula
The formula is: Lot Size = (Account Equity times Risk Percentage) divided by (Stop-Loss in Pips times Pip Value per Standard Lot).
For EUR/USD on a standard account, the pip value per standard lot is $10. So with a $10,000 account, 1% risk ($100), and a 50-pip stop: Lot Size = $100 divided by (50 times $10) = 0.2 lots.
For XAU/USD (gold), the calculation differs because the contract size and pip definition change. One standard lot of gold typically controls 100 troy ounces. If your stop-loss is $5 per ounce away from entry, the risk per lot is $500. To risk $100: Lot Size = $100 divided by $500 = 0.2 lots.
MT5 has a built-in calculator that can assist here. In the order window, after entering your stop-loss level, the platform displays the required margin and the potential loss at the stop-loss price. You can adjust the volume field up or down until the displayed loss matches your target risk amount. This is a visual way to accomplish the same calculation without a formula, and it accounts for the broker’s specific contract specifications automatically.
The visual method is especially useful when you are trading an unfamiliar symbol. Pip values, contract sizes, and tick definitions vary across instruments and brokers. A trader who memorized the pip value for EUR/USD might assume the same applies to EUR/JPY or AUD/NZD. It does not. The MT5 order window pulls the correct contract specifications from the broker’s server, so the displayed loss figure is accurate for the specific account and symbol you are trading.
Step 3 — Enter the Volume in the MT5 Order Window and Set Deviation
Open the order window with F9. Select the correct symbol from the dropdown. In the Volume field, type the lot size you calculated. Set your stop-loss in the Stop Loss field — this is critical, because without a stop-loss attached to the order, your risk is technically unlimited. Set the Deviation field to a reasonable value, typically 10–30 points for liquid forex pairs like EUR/USD or USD/JPY. For less liquid instruments or during news periods, you may need wider deviation to avoid repeated rejections.
Before clicking Buy or Sell, check the margin display. If the margin requirement consumes more than 10–15% of your account equity, you are likely overleveraged. A margin call can force the broker to close your position at the worst possible price — exactly the scenario position sizing is designed to prevent. If the margin looks excessive, reduce the lot size and recalculate.
For traders using pending orders (buy limit, sell stop, etc.), the same volume and stop-loss fields apply. The advantage of pending orders is that the trade only triggers if price reaches your specified level, which means your stop-loss distance is locked in at the time you place the order. This prevents the common mistake of entering a market order and then forgetting to set a stop-loss.
Pending orders also solve a timing problem. A trader who waits for a breakout before entering manually may face slippage that shifts the effective entry price, widening the stop-loss distance and increasing actual risk. A pending order placed at the breakout level with a stop-loss attached ensures that the risk parameters are defined before the market moves. If the order fills, the risk is known. If it does not fill, no capital is exposed.
Practical Tips for Better Results
- Use a position sizing spreadsheet or calculator tool alongside MT5. Keep it open on a second monitor so you can compute lot sizes quickly without typing numbers into the order window and hoping for the best.
- Adjust your risk percentage based on volatility regime. In low-volatility environments, a 1% risk with a tight stop may produce a lot size too large for safe execution. In high-volatility periods, the same 1% risk with a wide stop may produce a lot size so small that the trade’s profit potential does not justify the spread cost.
- Check contract specifications for every new symbol before trading it. Right-click the symbol in the Market Watch window, select Specification, and review the contract size, volume step, and minimum volume. These parameters vary between brokers and between instruments. Assuming EUR/USD and EUR/JPY have the same pip value is a common and costly error.
- Normalize your lot size downward, never upward. If your calculation produces 0.237 lots and the broker’s step is 0.01, trade 0.23 lots. Rounding up to 0.24 increases your risk by approximately 3% — small per trade, but compounding across hundreds of trades over a year.
- Monitor correlation exposure across open positions. If you are long EUR/USD and long GBP/USD simultaneously, you are effectively doubling your exposure to USD weakness. Position sizing per trade may be 1%, but your combined risk to a single macro factor is closer to 2%. Reduce individual position sizes when trades are highly correlated.
- Test your position sizing logic on a demo account before going live. MT5 demo accounts replicate the order window, contract specifications, and margin calculations of live accounts. Use the demo to verify that your lot size calculations produce the expected loss at the stop-loss level. Discrepancies between expected and actual loss usually point to a misunderstanding of pip value or contract size.
- For set position sizing strategy development, consider using the MT5 Strategy Tester to backtest your approach with different risk percentages. The Strategy Tester reports include maximum drawdown, which lets you compare the drawdown profile of 0.5% risk versus 1% versus 2% over the same historical period. You will typically see that doubling the risk percentage more than doubles the maximum drawdown, because consecutive losing streaks scale nonlinearly.
Common Mistakes to Avoid
- Using a fixed lot size for every trade regardless of stop-loss distance. This means your actual risk varies wildly — a 20-pip stop risks half as much as a 40-pip stop with the same lot size. Risk should be constant; lot size should vary.
- Ignoring the margin requirement and focusing only on stop-loss risk. A position can trigger a margin call before the stop-loss is reached if the lot size is too large relative to account equity. Margin calls force liquidation at market price, which is often worse than your intended stop.
- Forgetting to attach a stop-loss to the order. A mental stop is not a stop. Without a physical stop-loss order on the broker’s server, slippage and gaps can produce losses far exceeding your planned risk. MT5 supports stop-loss attachment on both market and pending orders — use it every time.
- Calculating risk on account balance rather than equity. Balance reflects only closed trades. Equity includes floating profit and loss. If you have a large open profit and calculate your next position size on balance, you may understate your available risk capital. Equity is the accurate measure of what you can afford to lose.
- Overlooking volume step and minimum constraints when switching brokers. A lot size that worked on your previous broker may not be valid on a new one. Always check the Specification tab before placing the first trade on a new account.
- Risking more after a losing streak to “recover” losses. This is the classic martingale trap. Doubling position size after each loss produces catastrophic drawdowns within a small number of consecutive losses. The mathematical expectation is negative, and the risk of ruin approaches certainty with enough trades.
Frequently Asked Questions
How do I calculate lot size in MT5?
Divide your intended risk amount by the stop-loss distance multiplied by the pip value per standard lot. For EUR/USD, where one pip per standard lot is typically $10, a $100 risk with a 50-pip stop produces 0.2 lots. MT5 also shows the potential loss at the stop-loss level in the order window, so you can adjust the volume field until the displayed loss matches your target.
What is the minimum volume for a trade in MT5?
The minimum volume depends on the broker and the symbol. For most forex pairs on standard MT5 accounts, the minimum is 0.01 lots (1,000 units of the base currency). Some brokers offer cent accounts where the minimum may be lower. You can check the exact minimum by right-clicking the symbol in Market Watch and selecting Specification.
Why does my MT5 show “not enough money” error?
This error appears when the margin required for the position exceeds your available free margin. It means the lot size you entered is too large for your account size and the broker’s margin requirements. Reduce the volume and try again. If the error persists even at the minimum volume, your account may not have sufficient capital to trade that particular symbol.
When should I use fixed lot size vs risk percentage?
Risk percentage is the better approach for most traders because it automatically adjusts position size to match stop-loss distance and account growth or decline. Fixed lot sizing makes sense only when your stop-loss distance is consistent across trades — for example, a scalping system that always uses a 10-pip stop. Even then, periodically reviewing whether the fixed lot size still represents your intended risk percentage is advisable.
Can I automate position sizing with an Expert Advisor in MT5?
Yes. MQL5 allows you to code position sizing logic directly into an Expert Advisor using the OrderSend function. The EA can read account equity, calculate the risk amount, measure stop-loss distance from ATR or structural levels, normalize the volume to the broker’s specifications, and submit the order with a stop-loss attached. This removes manual calculation errors and emotional overrides. The MT5 Strategy Tester lets you validate the EA’s sizing logic on historical data before live deployment.
Is position sizing different for forex and stocks in MT5?
The principle is identical — risk a fixed percentage of equity per trade — but the mechanics differ because contract specifications change. Forex lots are standardized (100,000 units for a standard lot), while stock CFDs on MT5 may represent 1 share or 100 shares per lot depending on the broker. The pip or point value also differs. Always check the Specification tab for each symbol to confirm contract size, tick value, and volume step before calculating your lot size.
Conclusion
The single most important lesson from this set position sizing guide is that lot size is a function of risk, not of conviction. Your analysis might be excellent, your timing precise, and your strategy sound — but if you risk 10% per trade, a normal losing streak will take you out of the game before your edge has time to manifest. Position sizing is the mechanism that keeps you in the game.
Your next step is practical. Open MT5, pull up the order window for a symbol you trade regularly, and calculate the lot size for a 1% risk on your current account equity using a stop-loss distance from a recent setup you considered. Enter that volume in the order window and check the displayed loss at the stop-loss level. If it matches your target risk, you have the process right. If it does not, review the contract specifications and pip value for that symbol.
Trading involves substantial risk of loss. No position sizing method eliminates the possibility of losing money. Even with perfect 1% risk per trade, a sufficiently long losing streak will produce a significant drawdown. The goal is not to avoid losses — that is impossible — but to ensure that no single loss or streak of losses is large enough to end your trading career. Risk discipline, not market prediction, is what separates traders who survive from those who do not.
—
This article is for educational purposes only and does not constitute investment advice. Trading and investing carry risk of loss; never invest more than you can afford to lose.
Last reviewed: August 2026