Guide · 7 min read

Trading Bot Risk Management: Position Sizing, Stop Loss & Drawdown

How to size positions, set stop losses, and think about drawdown when running an automated trading strategy — with a free position size calculator.

A trading bot's edge lives or dies on its risk management, not its entry signal. Two bots using the exact same entry logic can have completely different outcomes depending on how much they risk per trade — one can survive a losing streak comfortably, the other can blow up an account on the same sequence of losses.

This guide covers the three risk controls that matter most for any automated MT5 strategy: position sizing, stop loss placement, and drawdown tolerance.

Position sizing: risking a percentage, not a fixed amount

Most well-built trading bots size each position as a percentage of current account equity — commonly 0.5% to 2% per trade — rather than a fixed lot size. This means the position size shrinks automatically after losses and grows after gains, which keeps risk proportional to the account's actual state instead of staying fixed while the account changes.

The core formula is straightforward: Position Size = (Account Equity × Risk %) ÷ (Stop Loss Distance × Value per Pip). If a $10,000 account risks 1% ($100) with a 50-pip stop loss on a pair where each pip is worth $10 per standard lot, the position size works out to 0.2 lots.

Why the risk percentage matters more than it seems

Risking 1% per trade versus 3% per trade doesn't just triple the risk on a single trade — it changes how a losing streak affects the account non-linearly, because losses compound against a shrinking balance. A 10-trade losing streak at 1% risk per trade leaves an account down roughly 9.6%. The same losing streak at 3% risk per trade leaves it down roughly 26%, and at 5% per trade, down roughly 40% — a hole that then requires a much larger percentage gain just to recover back to breakeven.

This asymmetry — losses need a disproportionately larger gain to recover from — is the single biggest reason conservative risk percentages (0.5–2%) are standard practice for systematic strategies meant to run unattended over long periods.

Stop loss placement

A stop loss should be placed based on market structure or volatility (a multiple of ATR, beyond a recent swing high/low, outside a consolidation range), not an arbitrary fixed pip distance. A fixed 20-pip stop might be reasonable on a low-volatility pair during a quiet session and far too tight during a high-volatility news event on the same pair.

Wider stops require smaller position sizes to keep the same dollar risk — which is exactly what the position-sizing formula above accounts for automatically once the stop distance is known.

Thinking about drawdown before it happens

Before deploying any bot, it's worth calculating: at this bot's historical maximum drawdown, and at my chosen risk percentage, how much of my account would actually be at stake? A strategy with a 25% historical max drawdown run at aggressive position sizing can mean a much larger real-dollar hit than the same strategy run conservatively.

It's also worth deciding in advance — not during a losing streak — what drawdown level would trigger pausing or re-evaluating the strategy, so that decision isn't made emotionally in the moment.

Frequently asked questions

What risk percentage per trade is considered safe?

There's no universal answer, but 0.5–2% per trade is the common range for systematic strategies intended to run over long periods without manual intervention. Higher percentages increase both potential returns and the severity of losing streaks.

Should position size stay fixed or scale with account balance?

Most robust systems recalculate position size before every trade based on current equity, so risk stays proportional as the account grows or shrinks — rather than using a fixed lot size that represents a shrinking or growing percentage of risk over time.

Related terms

Related guides

Try the Free Position Size Calculator