Register
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 common types, how to set the distance, where they fail and how to use them in an automated strategy.

QuantPower Research · Updated 12 Nov 2026 · 17 min read

A fixed stop answers one question: how much am I willing to lose on this trade? A trailing stop answers a second: once the trade is working, how much of the gain am I willing to give back? Getting that second answer right is harder than it looks. Too tight, and every normal pullback ends a good trade early. Too loose, and a large gain shrinks to a small one before the stop is reached. This guide works through the types of trail with rupee figures on Nifty futures and options, shows how a trail behaves on a whole multi-leg position rather than one leg, and maps each idea to the trail settings in QuantPower's algos.

How a trailing stop loss works

Chart of a 100-point trailing stop following Nifty futures from 25,000 to 25,200 and exiting at 25,100 (illustration)

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.

The vocabulary

TermMeaning
Initial stopWhere the stop starts, before the trade has moved
Trail distanceHow far behind the best price the stop sits
StepHow much the price must move in your favour before the stop moves, and by how much it moves
RatchetThe rule that a stop only ever tightens, never loosens
Break-even stopA stop moved to the entry price once the trade is far enough in profit
LockA minimum profit protected on a whole position once it has reached a level

A short history of trailing stops

Traders have moved stops behind winning positions for as long as stops have existed, but the method was formalised in the 1970s. In *New Concepts in Technical Trading Systems* (1978), J. Welles Wilder introduced both the average true range, a measure of how much a market moves in a typical period, and the Parabolic SAR, a stop that accelerates towards the price as a trend extends.1 ATR gave traders a way to set stop distances that adapt to volatility, and remains the most common basis for a trailing stop today.

In the 1980s, the "Turtle" traders trained by Richard Dennis and William Eckhardt used stops measured in multiples of a volatility unit similar to ATR, which became a template for trend followers.2 In the 1990s, Chuck LeBeau popularised the "chandelier exit", which hangs a stop a few ATRs below the highest high since entry, like a chandelier from a ceiling.3

Exchanges never adopted trailing stops as an order type. In India, NSE and BSE accept limit, market, stop-limit and stop-market orders; a trailing stop is a rule that a broker's system, a platform or your own code runs on top of those orders. Some brokers have offered trailing stops inside bracket orders as a broker feature. For an algo trader, the trail lives in the strategy.

Ways to trail

TypeStop followsSuits
Fixed points or percentageThe best price since entry, minus a set distanceSimple intraday rules
SteppedMoves by a set amount each time the price moves a set amountOption legs, where prices jump
ATR-basedThe best price minus a multiple of the average true rangeMarkets whose volatility changes
Indicator-basedA moving average, Supertrend or the low of recent candlesTrend-following strategies
Break-evenMoves the stop to the entry price after a set gainProtecting capital once a trade works
Profit lockProtects a share of the whole position's profitMulti-leg option 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.

Stepped trail

Instead of following every tick, the stop moves in steps: for every X the price moves in your favour, the stop moves Y. A step of 10 and a move of 5 means the stop moves half as fast as the price. Steps suit option premiums, which move in jumps, and they keep the number of stop changes, and therefore orders, low.

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, 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, and because they act on a candle's close rather than a tick, a brief spike through the line does not end the trade.

Chandelier exit

The chandelier exit hangs the stop a multiple of ATR below the highest high since entry, usually 3 times a 22-period ATR. On a daily chart of Nifty futures bought at 24,800, if the highest high since entry is 25,400 and the 22-day ATR is 180 points, the stop sits at 25,400 − 3 × 180 = 24,860. If the price falls to it, the trade exits 60 points above entry, about ₹3,900 per lot of 65 before charges. As the high rises the stop rises with it; as volatility rises the stop moves further away, giving the trade more room in a nervous market.

Break-even and profit lock

A break-even stop is the simplest trail: once the trade is a set amount in profit, the stop moves to the entry price, so the trade can no longer lose money apart from costs and slippage. A profit lock does the same for a whole position: once total profit reaches a level, a part of it is protected, and the protected amount rises as profit grows.

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 tighten 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.

Short positions

The same arithmetic runs in reverse for a short trade. You sell one lot of Bank Nifty futures (30 units) at 52,000 with a 150-point trail. The stop starts at 52,150. Bank Nifty falls to 51,600, so the stop falls to 51,750. The index bounces to 51,750 and the stop triggers. The trade exits 250 points below the entry, a gain of 250 × 30 = ₹7,500 before charges. If the index had instead risen straight to 52,150, the trail would have acted as an ordinary stop and the loss would have been 150 × 30 = ₹4,500.

A worked comparison of distances

Nifty futures are bought at 25,000. Over the next two hours the price rises to 25,180, pulls back to 25,090, rises again to 25,320, and then falls to 25,150 by the close. One lot is 65 units.

Trail distanceStop after the first riseHit on the pullback to 25,090?ExitGain in pointsGain per lot
50 points25,130Yes, at 25,13025,130130₹8,450
100 points25,080No25,220, after the high of 25,320220₹14,300
200 points24,980No25,150 at the close, since 25,120 was never reached150₹9,750

The middle distance did best here, but on another day the 50-point trail would win. That is why a distance is chosen from the instrument's normal movement and tested over many days, not from one memorable trade.

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, for some strategies. An option's price can fall 20% while the index is unchanged, because of time decay or lower implied volatility. Many traders set the trail on the underlying's level and exit the option when it triggers.
  • Trail the premium for bought options, with a wide distance, because option prices are noisy. A stop 30% to 50% below the highest premium is common.
  • For sold options, trail the profit, not each leg. A short straddle that has earned 60% of its premium can carry a lock that exits if the profit falls back to 40%.
  • Use steps, not ticks. A stepped trail on a premium avoids reacting to every flicker in the bid and ask.

Worked example: a bought call with a stepped trail

You buy one lot of the Nifty 25,000 call at ₹120. The initial stop is 30% below entry, at ₹84, which risks 36 × 65 = ₹2,340. The trail moves the stop ₹5 for every ₹10 the premium rises, and a break-even rule moves the stop to the entry price once the premium reaches ₹150.

PremiumWhat happens to the stopStop
₹120 (entry)Initial stop₹84
₹140Two steps of ₹10: stop moves 2 × ₹5₹94
₹150Break-even rule: stop moves to entry₹120
₹170Five steps in total would put the trail at ₹109, below break-even, so the stop stays₹120
₹190Seven steps: trail at ₹119, still below break-even₹120
₹220Ten steps: trail at ₹134₹134
Falls to ₹134Stop hitExit at about ₹134

The trade exits with about ₹14 per unit, ₹910 per lot, before charges, after having been worth ₹100 per unit at its peak. A tighter step, such as ₹8 for every ₹10, would have kept more of the move and been stopped out sooner on the way up. A trail never captures the top; it trades part of the peak for staying in the trade.

Worked example: trailing the index for a bought call

The same call can be trailed on Nifty itself. You buy the 25,000 call at ₹120 with Nifty at 25,000 and set the exit on the index: sell the call if Nifty falls 60 points from its highest level since entry. Nifty climbs to 25,150, so the exit level rises to 25,090. Nifty slips to 25,090 and the call is sold. The premium at that moment depends on delta, time and implied volatility; if it is about ₹160, the trade earns 40 × 65 = ₹2,600 before charges.

The advantage is that time decay and a dip in implied volatility do not trigger the exit by themselves; only the index's move does. The disadvantage is the reverse: if the premium falls while the index stands still, the trail does not protect you, so a premium stop or an exit time is still needed below it.

How often the trail is checked

A trail can be checked on every price update or once per interval. Checking on every tick reacts fastest but also reacts to a single stray print in a thin contract. Checking once a minute, or at each 5 or 15-minute candle close, ignores brief spikes and acts on settled prices, at the cost of exiting a little later in a fast fall. A rough rule: the shorter the holding period and the more liquid the contract, the more often the trail can be checked; for positional trades on daily charts, a check at each close is enough.

Trailing a whole position

For multi-leg option strategies, trailing each leg separately can make little sense: one leg's loss is the other's gain. Trailing the combined profit of all legs is more natural.

Worked example: a lock-and-trail on a short straddle

A trader sells a Nifty straddle and sets a whole-position rule: once the combined profit reaches ₹4,000, lock ₹2,000; for every further ₹1,000 of profit, raise the lock by ₹750.

Combined profitLock
₹2,500None yet
₹4,000₹2,000 locked
₹5,000₹2,750
₹6,000₹3,500
₹7,000 (the day's peak)₹4,250
Falls to ₹4,250Both legs exit

The day ends with about ₹4,250 before charges instead of whatever the afternoon would have left. On a day when the profit never reaches ₹4,000, the lock never activates, and the strategy's ordinary stops and exit time apply. The lock is a rule about good days; the stops are rules about bad ones.

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 either modifies a stop order at the exchange, or sends an exit order when the rule says so. Three things follow:

  • The trail works only while the platform or program is running and your broker session is active.
  • If the trail works by modifying a resting stop order, each change is an order message, so a trail that updates on every tick can run into rate limits. Updating in steps, or once a candle, keeps the count low.
  • The exit has the usual fill risk. A market exit fills at the next available price, which in a fast move may be past the stop.

Our guide to order types explains stop-limit and stop-market orders and their trade-offs.

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.
  • Early exits in strong trends. A trend with sharp pullbacks stops out a tight trail before the main move.
  • Time decay in options. A trail on a bought option's premium can be hit by decay alone, on a day when the index does nothing.

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

Common mistakes

  • Loosening the trail when the price approaches it. A ratchet only tightens; moving it back defeats its purpose.
  • Trailing too early. Starting the trail before the trade has moved its normal range turns it into a tight fixed stop.
  • Trailing each leg of a spread as if it were a separate trade.
  • Using the same distance for every instrument. Nifty futures, a stock option and crude oil each need their own distance, measured from their own movement.
  • Ignoring costs. A trail that exits often adds brokerage and slippage that a backtest without costs does not show.
  • Never testing without the trail. A trail should earn its place by improving the average trade over a plain stop and target.

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,
  • the number of trades and their costs, which tight trails increase, and
  • how often the trail, rather than the stop or target, closed the trade.

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.

When the backtest is done, run the strategy on live prices without real orders for a few weeks before trading it. A backtest reads candles; live markets have gaps between ticks, partial fills and slippage on every exit, and a trail that looked tidy on history can exit more often and at worse prices in practice.

A checklist before you switch on a trail

  1. Write down the initial stop and the largest loss it allows in rupees for the lot size you trade.
  2. Decide what the trail follows: the premium, the underlying, an indicator or the whole position's profit.
  3. Set the distance from the instrument's measured movement, not from a round number.
  4. Decide when the trail starts: from entry, after a set gain, or after a break-even move.
  5. Decide how often it is checked: every tick or at candle closes.
  6. Confirm the exit order type, and what happens if the exit is not filled at once.
  7. Check that an exit time and an account-level loss limit sit above the trail, for the day the trail fails.
  8. Backtest with and without the trail, with costs included, and keep the trail only if it improves the average trade.

Trails for holdings and positional trades

An intraday trail only has to last until the market closes. A trail on shares held for weeks, or on a futures position carried across expiries, faces overnight gaps, corporate actions and contract rollovers. Three practical points:

  • Act on daily closes. Intraday noise on a positional trade is not information; a stop that reacts to it exits trades that were meant to run for weeks.
  • Expect gaps. Results, policy announcements and global moves overnight can open the market well below a stop. A stop on a holding is a plan for the next fill, not a guarantee of a price.
  • Reset after a rollover. When a futures position moves to the next month's contract, the new contract trades at a different price; the trail must be recalculated on it, not carried across as a number.

A GTT order, which sits with the broker and fires when a trigger price is touched, is a common tool for a stop on holdings. Raising its trigger by hand at each daily close is a simple, if manual, trailing stop.

Where trailing stops are going

Two developments matter. Volatility-based trails, measured in ATR or in the option's own expected move rather than fixed points, are becoming the default, because markets in India have seen sharp swings in volatility since 2024 with expiry and lot-size changes. And trails are moving from single trades to whole positions and whole accounts: a profit lock across all of a day's strategies protects the day, which is what most traders actually care about. Neither change removes the old trade-off between giving back gains and being shaken out; they only make the trade-off easier to set.

Trailing stops in QuantPower

QuantPower's algos have trailing settings at three levels, and the algo watches them for you while it runs:4

LevelSettingHow it works
Each legTrail SLFor every X the leg moves in your favour, the stop moves Y in your favour. It only ever tightens. Checked on every pass, or every 1, 5, 15, 30 or 60 minutes
Each legSL to costMoves the leg's stop to its entry price once the leg is X in profit, or when another leg's stop loss is hit
Each legUnitsTargets and stops in points, %, underlying points, underlying %, or by delta, theta, gamma or vega; measured from the traded price, the price the entry was decided on, or the last price when the order was sent
The whole algoLock profit and trailOnce the algo's profit reaches X, lock Y; for every Z more, the lock rises by W. Every leg exits when profit falls to the lock
The whole algoMonitoringTargets, stops, the lock and breakouts are read on every tick, or once per 1, 3, 5 or 15-minute candle close
The whole accountSmart ExitA target, a stop-loss and a trailing step for the whole account. On a hit, it stops the algos and squares off. Arming it needs your tap and the second factor

Exits are market orders that only reduce a position; they can never open a new one. Above every algo sit the daily loss limit, which refuses new orders once the day's loss reaches it, and the kill switch, which stops a segment until its next session. For holdings and positional trades outside an algo, a GTT order with two legs (one cancels the other) sets a stop and a target that wait up to 365 days; on the chart, a GTT's trigger line can be dragged to a new level, and a sheet shows the old and new trigger before anything is sent.

For the account-level setting step by step, see how to set an MTM stop loss.

Start with 500 free tokens

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 in profit 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 in India. Some brokers have offered trailing stops as a broker feature, and algo platforms such as QuantPower run the trail 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 trail each leg of an options strategy or the whole position?

For bought options, trail the premium with a wide, stepped distance or trail the underlying's level. For sold and multi-leg strategies, trail the combined profit with a lock rather than each leg.

How often should a trailing stop be updated?

Often enough to protect the gain, rarely enough to ignore noise. Updating in steps, or once per candle close, suits most strategies better than reacting to every tick.

Should a trailing exit be a market order or a limit order?

A market exit leaves the position when the trail is hit, at the cost of slippage in a fast move. A limit exit controls the price but may not fill, leaving the position open as the price keeps falling. Most automated strategies exit at market for this reason.

References

  1. J. Welles Wilder, *New Concepts in Technical Trading Systems* (Trend Research, 1978), on the average true range and the Parabolic SAR
  2. Curtis M. Faith, *Way of the Turtle* (McGraw-Hill, 2007), on volatility-based stops in the Turtle system
  3. Alexander Elder, *Come Into My Trading Room* (Wiley, 2002), on the chandelier exit attributed to Chuck LeBeau
  4. QuantPower: trail, stop-to-cost, lock-and-trail, monitoring, Smart Exit and GTT settings, from the app's code, checked 12 November 2026
Trading involves substantial risk. This page is for education and is not investment advice.