Risk Management for Crypto Trading Bots: The Settings That Keep You Alive
Automated trading has a brutal property: a bot executes a bad idea with perfect discipline, at machine speed, all night, while you sleep. Risk management isn't a feature you add to a trading bot — it's the thing that determines whether you're still trading next month. This guide covers the layers that matter, in the order they save you.
Layer 1: Per-Trade Protection
Stop losses on every trade, no exceptions
Every position needs a predefined exit for when it goes wrong. "I'll watch it" is not a stop loss — you're running a bot precisely because you're not watching. Hard rule: if a trade has no stop, the bot shouldn't be allowed to open it.
Take profits and trailing stops
Exits deserve as much design as entries. Tiered profit-taking (closing portions of a position at successive levels) smooths your equity curve; trailing stops that activate after a profit threshold let winners run while protecting gains. Critically, exit rules should belong to the strategy that opened the trade — a scalp and a swing trade should never share exit logic.
Layer 2: Position Sizing
Size determines survival. Two principles:
- Risk a fixed small percentage per trade. Risking 1% of the account per trade means a 10-loss streak — which will happen — costs about 10%. Risking 10% per trade means the same streak ends the account.
- Scale size with signal quality. If your strategy produces a confidence score, use it: full size on high-confidence signals, reduced exposure on marginal ones. Flat sizing treats your best and worst setups identically.
Layer 3: Account-Level Circuit Breakers
This is the layer most homemade bots skip, and it's the one that prevents catastrophe. These limits must live outside the strategy code — enforced by the platform — because the scenario they protect against is the strategy itself malfunctioning:
- Maximum drawdown limit. If the account falls X% from its peak, all trading halts until you intervene. This is the difference between a bad month and a blown account.
- Daily / weekly / monthly loss caps. A bot in a hostile regime can lose fast. A daily cap converts "death spiral" into "bad day, review tonight."
- Hard stop overrides. A universal stop loss that no strategy can disable, widen, or override. Strategies propose; the risk layer disposes.
Layer 4: Operational Risk
Market risk gets all the attention, but bots die of operational causes too:
- Stale data. If the feed drops and the bot keeps trading on old candles, every signal is fiction. The correct behavior is gap detection and automatic pause until integrity is restored.
- Restart amnesia. The bot crashes with a position open. Does it recover the position and its exit contract on restart, or does it start fresh with an orphaned trade on the exchange? Test this before it tests you.
- Config drift. Risk parameters scattered across code files get out of sync. Every limit should live in one config source so a change applies everywhere, verifiably.
- API key scope. Trade-only keys, never withdrawal. See connecting a bot to Kraken safely.
How OGZPrime handles this: risk is a platform layer, not strategy code. Per-strategy exit contracts (SL, TP, trailing, tiered exits), confidence-scaled position sizing, account drawdown limits, daily/weekly/monthly loss caps, and universal circuit breakers that strategies cannot override — all configured from a single file. Candle-gap detection pauses trading on bad data, and restart integrity is verified and published continuously.
The Uncomfortable Truth About Risk Settings
Good risk management doesn't make a bot profitable — it makes failure survivable and gives a genuinely profitable strategy enough runway to prove itself. If you find yourself loosening limits to "let the strategy breathe" after losses, that's not tuning; that's tilt with extra steps. Set limits when calm, validate the strategy honestly, and let the boring settings do their job.
Frequently Asked Questions
What is a reasonable max drawdown limit for a trading bot?
Common retail settings fall between 10% and 25% of account equity, depending on strategy volatility and personal tolerance. The right number is the one where you'd calmly stop and review rather than panic — set it before going live, and treat hitting it as mandatory review, not an obstacle.
How much should a bot risk per trade?
The widely used range is 0.5%–2% of account equity per trade. Smaller when strategies are unproven. The goal is that a realistic losing streak — 8 to 12 consecutive losses — leaves the account fully able to continue.
Should risk limits be in the strategy code or the platform?
Platform. The failure mode that matters most is the strategy itself misbehaving — a bug, an overfit signal, a regime change. Limits inside the malfunctioning component protect nothing; limits enforced outside it always fire.
What happens if a bot crashes with a position open?
On a well-built platform, the bot reconciles state on restart: it recovers the open position and its exit rules, and resumes managing it. If your bot can't do this, every restart is an unmanaged position — test crash recovery before trading real size.
Risk Management You Configure Once.
Drawdown limits, loss caps, exit contracts, and circuit breakers — built into OGZPrime's platform layer, enforced no matter what your strategy does.
Start Free Trial