Risk management in algo trading

Learn how risk budgets, whole-lot sizing, stop-loss orders, daily exposure and execution checks work in algorithmic trading, and why losses can exceed estimates.

Knowledge Hub · Educational material
Not personalised trading advice.

Why risk management matters even with automation

Algo trading does not remove market risk. It can repeat a decision rapidly and consistently, which makes the quality of the decision rules and risk checks especially important. A system that sizes orders incorrectly or repeatedly sends the same instruction can amplify losses rather than reduce them.

A risk framework defines which instructions are eligible before execution, which exposures are allowed while trading and how the system responds to unexpected broker or market events.

Per-trade risk and quantity

A planned rupee risk budget is account balance multiplied by the chosen risk percentage. For a long option, the entry premium minus the stop premium is the planned risk per unit. The theoretical quantity is budget divided by that price difference.

For example, ₹1,00,000 balance and a hypothetical 1% risk setting gives ₹1,000 planned risk. With an entry of ₹200 and a stop at ₹180, 50 units is the theoretical size. An illustrative lot of 65 units would exceed this budget at the planned stop. Round-up and round-down policies therefore produce different quantities.

See position sizing for option buyers and the free position size calculator. A risk budget is not a guarantee of realized loss.

Stop-loss orders, targets and actual fills

A stop-loss trigger activates an exit instruction; it is not necessarily the actual exit price. A stop-limit order can remain unfilled when the market moves beyond its limit. A market-style exit, where available, can fill at a worse price than expected. Broker and exchange order-type restrictions also apply.

Entry and exit levels may be defined using either an index chart or option premiums. These are not interchangeable, because option values respond to time and volatility as well as underlying price. See options and risk and risk-reward ratio calculation.

Account-level exposure and correlated positions

A per-trade limit is only one control. Multiple positions exposed to the same index can lose together. A daily exposure threshold may limit new trades, but open positions, market gaps and execution delays can still cause realized losses beyond it.

An account-level risk setting, available buying funds, outstanding orders and existing positions are different inputs. Check how the system treats all of them. A stop or daily drawdown rule should not be described as a guarantee that the account cannot lose more than a fixed amount.

Operational controls in algorithmic trading

  • Reject invalid, stale or incomplete inputs before sending orders.
  • Identify repeated signals and avoid duplicate live orders.
  • Distinguish pending orders, partial fills and actual open positions.
  • Check broker state after ambiguous responses or connection loss.
  • Make exception and exit workflows visible to the account owner.

A failure to receive a response does not prove that an order was not placed. Reconciliation matters as much as the original entry decision.

What to review before using an automated system

Review the assumptions about fills, costs, liquidity, position limits and order types. Historical drawdown is not the maximum possible future drawdown. Different market regimes can change the behavior of a tested strategy.

The TradeBoTicks derivatives research note and general risk management guide provide broader context for risk awareness. OptionTurtle offers trading risk management software with predefined sizing and execution controls; no software can eliminate these risks.

Sources & references

Educational information only. Trading involves risk of loss; no return or execution outcome is guaranteed. See our risk disclaimer.