Risk Management

Understanding Drawdown, Leverage, Stop-Losses and Risk Management

Risk management decides how much you can lose and how long you can keep trading. This guide covers position sizing, stop-losses, leverage, margin and drawdown, with worked examples.

By FX Bot Hub GuidesUpdated 2 min read

Start with risk per trade

Many traders decide in advance what fraction of their account they are willing to lose on a single trade — often a small percentage such as 1%. The point is not the exact number but consistency: no single trade should be able to damage the account badly.

Stop-losses

A stop-loss closes a trade automatically at a set price. Place it where your trade idea is proven wrong, not at an arbitrary distance. Remember that in fast markets or over weekends price can move past your stop, so the fill may be worse than the level you set (slippage).

Position sizing from your stop-loss

Work out size from three numbers: the amount you're willing to risk, the stop-loss distance in pips, and the pip value per lot.

A wider stop means a smaller position for the same risk. Pip values differ between pairs, so recalculate for each symbol.

Leverage and margin

Leverage sets how much margin your broker requires. At 1:30, a position worth $30,000 needs $1,000 of margin. Leverage doesn't change how much a pip is worth — position size does. What high leverage changes is how large a position you're *able* to open, which is why it is easy to over-trade.

  • Equity is your balance plus or minus open profit or loss.
  • Free margin is equity not tied up as margin; when it runs low, you can't open new trades.
  • If equity falls too far relative to used margin, your broker may close positions automatically (a stop-out). Levels vary by broker.

Drawdown

Drawdown is the fall from an account's peak to a subsequent low, usually shown as a percentage. Maximum drawdown is the largest such fall over a period.

Gain needed to recover from a drawdown
DrawdownGain needed to get back to the peak
10%11.1%
20%25%
30%42.9%
50%100%

Losses compound against you: the deeper the drawdown, the harder the recovery. That's why maximum drawdown matters as much as profit when you evaluate a trading bot.

Risk controls for Expert Advisors

  • Check how the EA sets lot sizes — fixed lots or a percentage of balance — and whether every trade has a stop-loss.
  • Be very careful with EAs that add to losing positions (grid, martingale or averaging). Their risk is concentrated in rare but severe losing streaks.
  • Don't run several EAs on one account without considering their combined exposure.
  • Decide in advance the drawdown at which you'll stop the EA and reassess.
  • Monitor regularly — automated doesn't mean unattended.

Look for tools that document their risk settings clearly on the FXBotHub marketplace.

Browse trading tools

Put it into practice

All tutorials

Step-by-step tutorials that build on this guide.

  • Testing & RiskIntermediate

    How to Run a Strategy Backtest in MT5

    Run an Expert Advisor backtest in the MetaTrader 5 Strategy Tester: choose the modelling mode, deposit and delays, then read the report and graph honestly.

    About 30 min(estimate) 9 steps
  • Testing & RiskBeginner

    How to Test a Forex Bot on a Demo Account

    Forward test an Expert Advisor on a demo account: open a demo, mirror your real settings, keep a simple log and compare results with the backtest.

    About 25 min(estimate) 7 steps
  • Forex Bots & EAsIntermediate

    How to Configure Expert Advisor Settings

    Configure an Expert Advisor's inputs in MT4 or MT5: lot size and risk, stop-loss units, magic numbers and spread limits, plus saving and loading .set files.

    About 20 min(estimate) 7 steps
All guides