← Ranavex Blog
Risk Management

Risk Management in AI Trading: Stop-Loss, Position Sizing and Limits

Author: Florian Grummes Publication date: November 19, 2026
Crystal shield protecting an Ethereum coin

A strategy without risk management is a lottery ticket. Research on retail trading consistently shows that most losses come not from bad forecasts but from poor risk control — oversized positions, missing stops, and the inability to cut a losing trade. AI does not change this fundamental truth: it is not a magician, it merely applies rules with discipline a human rarely sustains. That is why risk management deserves to be treated not as an optional layer on top of a strategy, but as the foundation on which the strategy stands.

Why AI does not remove the need for risk management

An algorithm is faster than a human, but it is not immune to error. A model can be wrong, data can be incomplete, and the market can behave in ways the training set never contained. Every one of these failure modes has the same consequence: losses larger than expected. Risk management exists precisely to cap that consequence.

There is also a subtler point. AI removes emotion from execution, but it introduces new risks of its own: blind trust in the algorithm ("the model knows better"), automated repetition of a bug (if the logic is flawed, it is flawed every time), and the temptation to leave a strategy unmonitored. Risk management is the layer that keeps all of these in check. It is not a constraint on the strategy — it is what allows the strategy to survive long enough to work.

The core tools

Risk management in AI trading rests on five tools. Each addresses a different kind of risk, and they are designed to work together.

Stop-loss and take-profit

A stop-loss caps the loss on a position; a take-profit locks in gains. There are three common variants. A fixed stop sits at a set percentage from the entry price. A trailing stop moves with the price, protecting accumulated profit. A volatility-based stop is tied to ATR (Average True Range), so it widens in volatile markets and tightens in calm ones — which is precisely why it survives noise that would knock out a fixed stop.

Position sizing

Position size is the main lever of risk control, and it is where most retail traders go wrong. The classic rule is to risk no more than 1–2% of capital per trade. The formula follows directly from that rule:

textPosition size = (Capital × Risk%) / (Entry price − Stop price)

The logic is simple: the distance to the stop determines how much you can lose per unit, so the position size is whatever keeps that loss within the limit. A wider stop means a smaller position — not a larger loss.

Kelly criterion

The Kelly criterion calculates the optimal bet size given known probabilities. In theory it maximizes long-term growth; in practice, full Kelly is far too aggressive for real markets, because the probabilities are estimated, not known. The standard compromise is fractional Kelly — often one-quarter — which gives up some theoretical growth in exchange for a much smoother equity curve. The formula and its criticism are well documented by Investopedia (see sources below).

Maximum drawdown

Maximum drawdown is the largest acceptable fall in capital from its peak. When the limit is hit, the strategy is stopped and reviewed. This is the portfolio-level counterpart to the per-trade stop-loss: stop-loss protects a single position, max drawdown protects the whole account.

Concentration limits

Concentration limits cap the share of a single asset or a single strategy in the portfolio — for example, no more than 25%. This prevents a single failure from becoming a portfolio-wide failure, which is especially important in crypto, where assets are highly correlated.

Tool What it limits Typical value
Stop-loss Loss per position 2–5%
Position sizing Risk per trade 1–2% of capital
Kelly (fractional) Bet size 1/4 Kelly
Max drawdown Portfolio drawdown 15–25%
Concentration Share of a single asset ≤ 25%

The table makes the division of labor clear: each tool operates at a different level — trade, position, portfolio — and together they form a layered defense rather than a single checkpoint.

How the algorithm applies this in practice

Knowing the tools is one thing; seeing how they fit together in a live system is another. A typical risk-management pipeline looks like this.

  1. Before a trade, the model estimates volatility — the subject of the article on volatility forecasting.
  2. Position sizing adapts to volatility: the higher the volatility, the smaller the position.
  3. The stop-loss is placed at a level that accounts for ATR.
  4. The portfolio risk manager checks concentration and drawdown limits.
  5. When a limit is reached, the strategy is paused automatically.

The sequence matters. Volatility comes first because every subsequent decision depends on it: position size, stop distance, and even whether the trade is worth taking at all. The portfolio-level checks come last because they are the final gate — a trade that passes position sizing can still be rejected if it would breach concentration or drawdown limits.

The human factor

Algorithms remove emotions, but they add new risks that are easy to overlook.

Blind trust is the first. "The algorithm knows better" is not a risk-management argument — it is an abdication of responsibility. The investor still owns the outcome.

Automated error is the second. If there is a bug in the logic, it reproduces systematically, trade after trade. A human might catch a strange decision; an algorithm will repeat it.

Absence of monitoring is the third. A strategy needs periodic review: is it still performing as expected, are the assumptions still valid, has the market regime changed? An unmonitored strategy is not passive income — it is an unmanaged risk.

Risk management checklist

  • □Maximum risk per trade is set (1–2%)
  • □Stop-loss and take-profit are configured
  • □A maximum drawdown limit exists
  • □Concentration per asset is capped
  • □Monitoring and alerts are set up
  • □The strategy has been tested on history (backtesting)
  • □There is a plan for when limits trigger

Conclusion

Risk management is what separates investing from gambling. AI makes it disciplined and fast, but the rules are still set by you — the investor. Stop-loss, position sizing, Kelly, max drawdown and concentration limits each protect a different layer, and together they form a system that survives bad forecasts, model errors and regime shifts. Want to set your risk limits and test a strategy with automatic drawdown control?

Sources

  1. Investopedia — risk management in trading: https://www.investopedia.com/articles/trading/09/risk-management.asp
  2. Investopedia — Average True Range (ATR): https://www.investopedia.com/terms/a/atr.asp
  3. Investopedia — Kelly criterion: https://www.investopedia.com/terms/k/kellycriterion.asp
  4. CoinGecko — market statistics: https://www.coingecko.com
  5. Binance Academy — risk management basics: https://academy.binance.com/en/articles/what-is-risk-management

About the author

FG

Florian Grummes is an author and analyst specializing in investing and capital management. He publishes research and market reviews and produces educational content on investment strategies and risk management.