How to Set Trailing Stop Loss in TradingView: A Step-by-Step Guide
A trailing stop adjusts its trigger as price moves favorably, then holds that trigger when price reverses. Whether you can place one from TradingView depends on the connected broker, account, symbol, and supported order types. A trailing-stop indicator or Pine backtest is not a live protective order.
Check support before opening an order
Confirm that your broker supports trailing stops through its TradingView integration. Support in the broker's own application does not necessarily mean support in TradingView. The TradingView trailing-stop introduction makes broker support a prerequisite.
For supported accounts, open the order ticket and inspect the Stop Loss bracket's available types. TradingView's placement instructions describe selecting Trailing Stop from that menu and include a V20 account requirement. Treat that account-specific guidance as such, rather than a universal feature available on every broker.
If the option is missing, verify the broker's integration documentation. Adding an indicator or upgrading a charting plan does not supply an unsupported order type.
Set and verify the distance
- Confirm the connection is the intended demo or live account and the symbol is tradable there.
- Select a trailing order only if the ticket offers it. Read whether the distance is in ticks, points, pips, price units, or percentage.
- Check any minimum distance, activation rule, trading-session restriction, and expiration.
- Review the quantity, direction, estimated exposure, and resulting trigger before submitting.
- After acceptance, verify the order in the broker's order list. Watch its trigger during a favorable and unfavorable move in a demo environment where supported.
The displayed order status matters: an unsent ticket, rejected request, chart drawing, and accepted broker order are different states.
Calculate a percentage trail correctly
In a simplified long-position example, a 2% trail activated at $100 starts at $98. If the favorable reference price reaches $120, the trigger becomes $117.60. A later drop to $119 does not lower the trigger. These are illustrative trigger calculations, not promised fills; the broker defines its reference-price and activation rules.
A short-position trail works in the opposite direction: favorable lower prices can lower the buy-stop trigger. A fixed price-unit distance and a percentage distance behave differently as price changes. Do not confuse a $2 price distance with $2 of total account risk.
Understand execution risk
A triggered stop-market order seeks execution at the available market price, which can differ substantially from the trigger after a gap. A stop-limit order adds a price constraint but can remain unfilled. A trailing stop therefore cannot guarantee a profit or a maximum loss. The SEC's stop-order investor bulletin explains these distinctions.
There is no universal 2% or ATR multiple that is appropriate for every symbol and timeframe. Compare candidate rules over a defined sample with realistic costs and adverse gaps. A volatility-based rule also needs a decision about whether its stop may loosen; a conventional protective trail should not move farther away merely because ATR rises.
Keep custom Pine logic separate from live orders
Pine strategies can simulate trailing exits. TradingView's strategy documentation distinguishes activation levels from trailing offsets; built-in trailing offsets are expressed in ticks. An indicator can instead draw a proposed stop or generate alert events.
Neither action installs a broker order on its own. An external alert execution workflow needs its own order acknowledgement, position reconciliation, and failure handling. Test that workflow separately from the backtest. Pineify can assist with drafting the rules, but the broker's accepted order state is the evidence that live protection exists.
Why can I see a trailing-stop line but no order?
The line may be an indicator output or a strategy simulation. Check the connected broker's order list for an accepted live or demo order.
Does a trailing stop lock in the displayed profit?
No. The trigger can move favorably, but execution price, gaps, fees, and order type affect the realized result.
What if my broker's TradingView ticket has no trailing option?
Check the integration's supported order types. A script cannot add a missing broker-native ticket feature.

