Free trial
Menu
Learn guide

Understand How a Trailing Stop-Loss Works

A trailing stop loss is a stop that follows the price as a trade moves in your favour and stays put when the price turns. It locks in part of a gain without a fixed target. This guide explains how trailing stops work, the three common types, how to set the distance, where they fail and how to use them in an automated strategy.

QuantPower Research · Updated 6 Nov 2026 · 6 min read

How a trailing stop loss works

A normal stop loss sits at a fixed price. A trailing stop moves:

  • For a long position, the stop rises as the price rises, by a fixed amount, a percentage or an indicator value. It never falls.
  • For a short position, the stop falls as the price falls. It never rises.

When the price reverses by the trailing distance, the stop is hit and the position exits.

Example
You buy a Nifty futures contract at 25,000 with a 100-point trailing stop. The stop starts at 24,900. Nifty rises to 25,200, so the stop moves to 25,100. Nifty then falls to 25,100 and the stop triggers. The trade exits with a gain of 100 points, or ₹6,500 on a lot of 65, instead of a loss.
Chart of a 100-point trailing stop following Nifty futures from 25,000 to 25,200 and exiting at 25,100 (illustration)

Three ways to trail

TypeStop followsSuits
Fixed points or percentageThe highest price since entry, minus a set distanceSimple intraday rules
ATR-basedThe highest price minus a multiple of the average true rangeMarkets whose volatility changes
Indicator-basedA moving average, Supertrend or the low of the last few candlesTrend-following strategies

Fixed distance

The stop sits a fixed number of points or a fixed percentage below the highest price reached. It is easy to understand and to automate. The weakness is that the same distance is too tight on a volatile day and too loose on a quiet one.

ATR-based

The average true range measures how much the instrument moves in a typical candle. A stop at 2 to 3 times the ATR adapts to the market: wider when volatility rises, tighter when it falls. If Nifty's 14-period ATR on a 15-minute chart is 40 points, a 2.5 ATR stop trails 100 points behind the high. Our ATR volatility strategy guide shows the indicator in use.

Indicator-based

The stop follows a line on the chart. A trade exits when the price closes below a 20-period moving average, or below the Supertrend line, or below the lowest low of the last three candles. These stops follow the trend's shape rather than a fixed distance. See the Supertrend strategy for an example.

Setting the distance

The distance decides the trade-off between giving back gains and being stopped out by noise.

  • Too tight: normal fluctuations hit the stop, and the strategy exits good trades early with small gains.
  • Too loose: large gains are given back before the stop triggers.

Guidelines that work in practice:

  1. Measure the instrument's normal movement on your timeframe, using ATR or the average range of recent candles.
  2. Start with a distance of 2 to 3 times that measure.
  3. Test distances on either side in a backtest and compare the average profit per trade, not only the win rate.
  4. Keep the distance fixed for the life of the trade, or widen it only by a rule you tested.

A trailing stop that tightens as the gain grows, for example from 3 ATR to 1.5 ATR once the trade is up 2 ATR, protects more of a large gain at the cost of more early exits.

Trailing stops on options

Option prices move faster than the index and lose value with time, so the same rules need care:

  • Trail the index, not the premium. An option's price can fall 20% while the index is unchanged, because of time decay or lower IV. Many traders set the trail on the underlying's level and exit the option when it triggers.
  • Trail the premium for bought options. For a long call or put, a stop at 30% to 50% below the highest premium is common, with a wide distance because option prices are noisy.
  • For sold options, trail the profit. A short straddle that has earned 60% of its premium can carry a stop that exits if the profit falls back to 40%. QuantPower's MTM stop loss can trail the combined profit of all legs.

Trailing stops and exchange orders

Indian exchanges do not offer a trailing stop order type. A trailing stop is a rule that your platform or your own code runs: it watches the price and modifies a stop-loss order, or sends an exit order, when the rule says so. Three things follow:

  • The trail works only while the platform is connected and your broker session is active.
  • Each modification is an order, so a trail that updates on every tick can exceed order limits. Updating once a candle, or only when the stop moves by at least a tick size, keeps the count low.
  • The exit order is a limit or stop-loss order with the usual fill risk. Our guide to order types explains the choices.

Where trailing stops fail

  • Gaps. A trailing stop cannot exit at a price the market skips. An overnight gap through the stop fills at the open, wherever that is.
  • Whipsaws. In a sideways market, a tight trail exits repeatedly for small losses.
  • Illiquid contracts. A stop that triggers in a thin option may fill far from the trigger. Use limit orders with a buffer.
  • Early exits in strong trends. A trend with sharp pullbacks stops out a tight trail before the main move.

No stop removes risk; it limits how much of a move you give back once the trade has gone your way.

Trailing stops in an automated strategy

Automation suits trailing stops well, because the rule needs constant attention and no judgement. In QuantPower's strategy builder:

  1. Set the initial stop loss for the position, in points, percentage or premium.
  2. Switch on trailing and choose the step: for example, move the stop up by 50 points for every 50 points the index gains.
  3. For sold option strategies, set a profit-based trail on the combined MTM instead.
  4. Backtest the strategy with and without the trail to see whether it improves the average profit per trade.

The MTM stop loss works across all open positions and can trail the account's total profit, which protects a day's gains after the individual strategies have done their work.

Backtesting a trailing stop

Compare the strategy with a fixed stop and target against the same strategy with a trailing stop, on the same data. Look at:

  • the average profit per trade,
  • the largest single gain, which trails often reduce,
  • the maximum drawdown, and
  • the number of trades, which tight trails increase.

A trail helps most in trending markets and hurts most in ranges. Test across both. Our guide on how to backtest trading strategies covers the method.

Start your free trial

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

What is the difference between a stop loss and a trailing stop loss?

A stop loss stays at a fixed price. A trailing stop moves with the price when the trade is profitable and stays put when the price turns against you.

Can I place a trailing stop loss order with my broker?

Not as an exchange order type. Some broker apps offer trailing stops as a feature that modifies your stop order for you, and algo platforms such as QuantPower run the rule as part of a strategy.

What is a good trailing stop distance?

Two to three times the instrument's average true range on your trading timeframe is a common starting point. Test it on your own strategy.

Does a trailing stop guarantee a profit?

No. It can only lock in a gain after the price has moved far enough to lift the stop above your entry. Before that, it works like a normal stop loss, and gaps can fill below the stop.

Should I use a trailing stop on options?

For bought options, trail the premium with a wide distance or trail the underlying's level. For sold option strategies, trail the profit on the whole position rather than each leg.

Trading involves substantial risk. This page is for education and is not investment advice.