Risk management for algo trading: stop-losses, loss limits and kill switches
Position sizing, stop-losses, daily loss limits and the kill switch, explained simply.
The short answer
Risk management in algo trading means deciding, before any order is placed, how much a strategy is allowed to use and to lose. The core controls are position sizing (capital per strategy), a stop-loss on every position, a maximum daily loss that halts trading when it is hit, and a kill switch that exits everything at once. Good automation enforces these limits even when you are not watching.
Key takeaways
- 01Decide what a strategy may use and lose before it places a single order.
- 02A maximum daily loss caps a bad day; stop-losses cap a bad trade.
- 03Capital caps stop one strategy from taking over your account.
- 04A kill switch is your emergency exit: everything flat, everything paused.
Why risk comes first
A strategy’s rules decide when to trade. Risk controls decide how much damage any one trade, day or strategy can do. Professional desks set these limits first and only then think about returns, because a single unchecked loss can undo months of steady work.
The five controls every algo trader needs
| Control | What it limits | Example |
|---|---|---|
| Capital per strategy | How much one strategy can deploy | ₹1,00,000 of a ₹3,00,000 account |
| Stop-loss | The loss on a single position | Exit a leg if it moves 30% against you |
| Maximum daily loss | The total loss in one day | Stop all trading after a ₹2,500 loss |
| Position size | Lots per trade | 1 lot until the strategy has a track record with you |
| Kill switch | Everything, instantly | Square off all positions and pause every strategy |
Why a maximum daily loss matters most
Most account-damaging days share a pattern: a loss, then another trade to win it back, then a bigger one. A maximum daily loss breaks that loop. Once it is hit, the system squares off and stops for the day, so a bad day stays a bad day rather than becoming a bad month.
Sizing: start smaller than you think
- Start each new strategy at the smallest size it allows, often a single lot.
- Increase size only after live results behave the way you expected.
- Keep total capital in use below what you could afford to see fall sharply in a volatile week.
The kill switch: know where it is before you need it
Markets can gap on news, and technology can fail. A kill switch exits all open positions and pauses every strategy in one action. Find it, understand what it does and make sure it works before your first live day.
Frequently asked questions
What is a maximum daily loss?
A limit on how much you can lose in a single trading day. When it is reached, open positions are squared off and the strategy stops trading until the next session.
What does a kill switch do?
It exits all open positions at market and pauses every running strategy at once. It is an emergency control for news events, unexpected moves or technical problems.
Do risk limits guarantee I won’t lose more than my limit?
No. Limits greatly reduce risk, but gaps, slippage and fast markets can cause losses beyond a set level. Trade only with capital you can afford to lose.