Step 01 · Risk & Position

Position size & risk calculator

Size a trade for MetaTrader 5, then check it survives a losing streak — not just a single stop.

Free · No install · Runs in your browser

Position size & risk calculator — example screen

Your setup

Changes recalculate instantly. Nothing is sent anywhere.

Account
Trade

Needed for margin only. Position size does not depend on it.

Broker & sizing rule
Your edge (used for risk of ruin)

of the balance lost

Diagnosis

What this setup implies, before you run it.

Lot size for different stop distances

  • Lot size that keeps your risk the same
  • Your current input

Survival

What the same risk setting looks like after a streak of losses. Balance-proportional sizing shrinks the stake as you lose; a fixed lot does not.

Losing streak Balance-proportional Fixed {lots} lots Balance left
— — —
— — —
— — —
— — —
— — —

Risk of ruin

—

How to use it

  1. Enter your numbersType your own values into the fields, or choose your MetaTrader report if the tool reads a file. The values already there are only a starting example.
  2. Read the result and the diagnosisThe large number answers the question. The cards under it say what looks wrong and what to change.
  3. Try a fix or take it furtherApply a suggested change to see the result move, follow the link to the next tool, or copy the link to come back to the same inputs.

How this is calculated

Lot size is risk amount divided by (stop distance × pip value), then rounded down to your broker's lot step. Rounding up would breach the risk you set, so the exact figure is shown next to the tradable one instead of replacing it.

Pip value is pip size × contract size, converted into your account currency with the rate you supply. For instruments where contract size is broker-specific — indices, metals, crypto, commodities — no value is shown at all, because guessing one would quietly change every number on this page.

Risk of ruin uses Balsara's analytic solution: the probability of losing a fixed share of the account before the edge plays out, given a win rate and a reward-to-risk ratio. It assumes independent trades of constant risk, which is optimistic — real losing streaks cluster. Treat it as a floor, not a forecast.

Questions and answers

Is it free, and do I need an account?

Free · No install · Runs in your browser. No account needed to calculate.

Is anything uploaded?

Everything above runs in your browser. No balance, symbol or setting is sent to a server, and there is nothing to delete afterwards.

How far can I trust the result?

Figures are calculations from your inputs, not predictions. Nothing here is investment advice.

Related tools

Keep exploring

Let an EA size every trade for you

This calculator turns your risk and stop distance into a lot size. In AIStrategyMiner Builder you wire your entry and exit rules together as blocks and set the risk per trade, with no code.

  • Set the risk and the stop distance you used here, then compile a standard .ex5 file for MetaTrader 5.

Check the finished EA in MetaTrader 5 before you trust it. The numbers on this page come from what you typed; they are not a forecast of results.

AIStrategyMiner EA Builder: strategy blocks wired together on a canvas, with the properties panel on the right