How to Set Trailing Stop Loss in TradingView: A Step-by-Step Guide
Ever watched a winning trade turn into a loser right before your eyes? Yeah, me too. That sinking feeling when you see profits evaporate is something every trader knows way too well.
A trailing stop loss is an automated order type that adjusts its trigger price as the market moves in your favor, locking in gains along the way. It only moves in one direction — toward profit protection. In TradingView, you can set one up in a few clicks.
I'm going to show you exactly how to do it, because this is one of those features that separates traders who sleep well at night from those waking up at 3 AM to check their phones.
Why trailing stops matter
I used to be glued to the screen, finger hovering over the exit button, trying to time the perfect exit. I wasn't good at it. On December 12, I watched a TSLA position swing from +$1,200 to -$300 because I refused to set a stop. That trade taught me a lesson I've never forgotten.
Trailing stops solve three things:
Automated profit protection. As your trade moves in your favor, the stop trails behind it. No manual adjustments, no late-night panic exits.
Emotional distance. You're not second-guessing every pullback. The system handles it.
Time freedom. You can walk away from the screen. I've taken calls, gone to meetings, even napped while trailing stops did their job on an AAPL swing trade.
The trick is setting the right distance. Too tight and you're out on noise. Too wide and you give back too much. I'll walk you through that next.
Learn how to calculate your risk-reward ratio before you start — it makes the whole thing clearer.
Setting up your trailing stop in TradingView
Step 1: Open your trading panel
Click the "Trading Panel" button at the bottom of TradingView, or press Alt+T. If you don't see it, you might need to enable it in the layout settings.
Why this matters: You can't set any stop loss without the panel open. It's also where you'll monitor your active orders.
Step 2: Find the trailing stop option
In the order panel, locate the "Stop Loss" dropdown menu. Click it and select "Trailing Stop."
What can go wrong: Some broker integrations don't support trailing stops. OANDA requires a V20 account — older account types won't show the option. If the dropdown is missing, check your broker settings first.
Step 3: Configure your trailing distance
This is the make-or-break decision. You've got four ways to set it:
- Pips — Standard for forex. I start at 20-30 pips for EUR/USD during normal sessions.
- Points/Ticks — Used for futures and indices.
- Percentage — My go-to for stocks and crypto. Trails with the price automatically.
- Dollar amount — Good for fixed-risk scenarios.
If I enter a $100 stock with a 2% trail, the stop sits at $95 initially. If the stock climbs to $120, the stop moves to $117.60 — locking in gains without me touching a thing.
Why 2% works for me: On SPY, 2% trails give the trade enough room to breathe through intraday noise without giving back half the move. For more volatile assets, I use 1.5-2x ATR instead.
What can go wrong: Pick a distance too tight and you get stopped out by random noise. Too wide and you give back most of your gains before the stop triggers. There's no universal setting — it depends on the asset and your risk tolerance.
Step 4: Place the order and let it run
Once configured, place your order. Now the hard part: leave it alone. I've blown up plenty of trades by overriding the stop mid-move.
Advanced trailing stop strategies with Pine Script
If you want custom logic — volatility-adjusted trails, multi-timeframe rules, or indicator-based exits — Pine Script opens those doors. You can write a trailing stop that widens during high-volatility periods and tightens when the market quiets down.
For example, a strategy that trails price at 2x ATR during earnings season and 1x ATR during normal trading. I tested this on NVDA around their May 2025 earnings and the wider trail kept me in a 47% run that a static 5% stop would have killed. For more on automated risk management, check out this guide to automatic stop loss setups.
Don't want to code? There are tools that generate the script for you.
Common trailing stop mistakes
I've made every mistake on this list. Here's what I learned:
Trail too tight
Set your distance too small and normal market noise stops you out. I lost a perfectly good AAPL swing in February because I used a 1% trail during a Fed-speak day.
Fix: Use ATR to measure normal price movement. Start at 1.5x ATR and widen from there.
Ignoring market personality
Crypto needs way more room than blue-chip stocks. A 10% trail on BTC is reasonable. The same trail on KO would mean you never exit.
Forgetting slippage
Fast markets don't fill at your stop price. Gap openings and news spikes can push your exit 0.5-2% past the trigger in volatile names.
Fix: Build in a buffer, especially around economic releases.
Ignoring session timing
First and last hours of the trading day are more volatile. The midday lull is tighter. Adjust accordingly.
Trailing stops for different markets
Forex: I use pip-based trails, 20-30 pips for majors like EUR/USD during normal conditions. News sessions? 40-50 pips minimum.
Stocks: Percentage-based trails. 3-5% for large caps like MSFT. 8-12% for small caps or growth names.
Crypto: 7-10% as a starting point. BTC needs less room than a meme coin that swings 25% in four hours.
When to skip trailing stops
Trailing stops are not always the answer:
- Sideways markets — Range-bound price action triggers the stop on every swing. I use a fixed stop or wait for a breakout instead.
- Scalping — On 30-second timeframes, the trailing mechanism lags too much to be useful.
- Low-liquidity assets — Wide spreads and poor fills make the stop price unreliable.
I've stopped using trailing stops entirely on penny stocks and thinly traded forex pairs. The slippage eats any benefit.
▶What is a trailing stop loss and how does it differ from a regular stop loss?
A trailing stop loss moves with the price as it trends in your favor. A regular stop loss stays put. Say you buy at $100 with a 5% trail — the stop starts at $95. If price climbs to $120, your stop moves to $114. With a fixed stop, you'd still be stopped at $95, giving back most of the gain.
▶What trailing stop distance should I use?
That depends on the asset and market conditions. I start with 1.5-2x ATR as a baseline. For stocks, 3-5% on large caps, 8-12% on growth names. For crypto, 7-10%. Paper test before going live.
▶Can I set a trailing stop loss directly in TradingView?
Yes. Open the Trading Panel (Alt+T), go to your order, find the Stop Loss dropdown, and pick "Trailing Stop." Enter your distance in pips, points, percentage, or dollars depending on your broker.
▶Why does my trailing stop keep getting triggered prematurely?
Your trail is too tight for the asset's volatility. Market noise — those random wicks and pullbacks — hits a tight stop. Measure ATR and set your trail to at least 1.5x that value. If EUR/USD has a 15-pip ATR, don't trail at 10 pips.
▶Do trailing stop losses work for both long and short trades?
Yes. On longs the stop trails price upward and triggers on a drop. On shorts it trails price downward and triggers on a rise. Either way, the stop only moves in your favor.
▶Are there situations where I should not use a trailing stop?
Yes. Sideways markets, very short scalps, and low-liquidity assets are the main cases. I also avoid them during major news events where gaps can skip right past the stop price.

