Set a percentage or ATR-based stop-loss for a long or short trade, and get the risk-sized quantity for your account in the same step.
Free tool — values never leave your browser. For these numbers computed automatically from your real trades, create a free TradeDiary account.
A percentage stop is simple: exit if price moves a fixed % against you. Its weakness is that it ignores how much the stock normally moves — a 2% stop on a volatile smallcap gets hit by noise, while the same 2% on a largecap may be wider than needed.
An ATR stop scales with the stock's own volatility. ATR (Average True Range) measures the typical daily range; placing the stop 1.5–3 ATRs away keeps it outside routine noise for that specific stock.
Whichever method you use, size the position from the stop distance — this calculator does both in one step.
Stop calculating trade-by-trade. TradeDiary imports your trades from Zerodha, Groww, Upstox, Dhan & more, and tracks these numbers across your whole history.
Start Free — No Credit Card →Every major charting platform (TradingView, Kite charts, Upstox) has ATR as a built-in indicator — the standard setting is 14 periods. Use the ATR of the timeframe you trade: daily ATR for swing trades, 15-minute ATR for intraday.
2× ATR is the common default for swing trading. Tighter (1–1.5×) suits momentum entries expected to work immediately; wider (2.5–3×) suits position trades that need room. Backtest against your own exits — your journal will show if stops are too tight.
In India, SL-M (stop-loss market) guarantees an exit but not the price; SL-L (limit) guarantees price but can be skipped in a gap. For risk control, most traders prefer SL-M on liquid stocks — an unfilled stop is how small losses become big ones.