Advanced Risk Controls
Implementing ATR stops, cooldown timers, and position sizing to protect your capital in automated crypto trading strategies.
Why Risk Controls Are Non-Negotiable
Automation amplifies your logic. If your logic lacks risk control, automation will amplify your losses. Every strategy deployed on Algonney should have explicit risk parameters defined before going live.
The difference between a profitable algo trader and a blown account often comes down to three things: stop-loss discipline, position sizing, and cooldown periods.
ATR-Based Stop Losses
The Average True Range (ATR) measures market volatility. Instead of using a fixed percentage stop-loss, ATR-based stops adapt to current market conditions.
Stop Loss = Entry Price - (ATR Period × Multiplier)For example, with ATR(14) = $500 and a multiplier of 1.5, your stop-loss would be placed $750 below your entry. This gives the trade room to breathe during volatile periods while still protecting against genuine reversals.
Recommended ATR Settings
- Scalping (5m-15m): ATR(14) × 1.0-1.5
- Day Trading (1H): ATR(14) × 1.5-2.0
- Swing Trading (4H+): ATR(14) × 2.0-3.0
Trailing Stops
A trailing stop moves with the price to help protect unrealized gains. When the price moves in your favor by a defined percentage or ATR multiple, the stop ratchets up but never moves back down. It does not guarantee a profit, and gaps or slippage can still cause exits below the stop level.
Trailing stops in Algonney evaluate on closed candles only, ensuring the stop doesn't trigger on wick spikes that immediately reverse.
For example, a 2% trailing stop on a long position entered at $50,000: if BTC rises to $55,000, your stop is at $53,900. If it drops back to $53,900 on a closed candle, the position closes with $3,900 in profit secured.
Cooldown Timers
A cooldown timer enforces a mandatory pause after a trade closes. This prevents chain failures — where a bot enters and stops out repeatedly in choppy consolidation zones.
Without cooldowns, an aggressive bot on a 5-minute timeframe can execute 20+ losing trades in a single choppy session, destroying weeks of gains.
Recommended Cooldown Periods
- Scalping: 3-5 candles after any trade
- Day Trading: 1-2 candles after a stop-loss hit
- Swing Trading: 12-24 hours after a loss
Position Sizing
Never risk more than a fixed percentage of your capital on any single trade. The 1-2% rule is standard: it sizes trades so a normal stop-loss hit risks roughly 1-2% of total capital (actual losses can be larger if price gaps or slips past the stop).
Position Size = (Account × Risk%) / (Entry - Stop Loss)With a $10,000 account and 1% risk per trade, your intended loss per trade is about $100. If your stop is $500 away from entry, your position size is $2,000 (0.2 lots). This helps cap your planned downside, though slippage and price gaps can cause actual losses to exceed the stop.
Leverage and Drawdown
10x leverage means a 5% strategy drawdown becomes a 50% account drawdown. Never scale leverage before proving consistency in backtesting and paper trading.
On Algonney, you can test strategies at different leverage levels in the backtester to see the exact drawdown profile before committing real capital.