logo
Developers

Trailing Stop Snippet

Script from: TradingViewSwingMomentumTrend following

Utilize the Trailing Stop Snippet to implement dynamic stop-loss management, locking in gains while the stock rises. Activate the trailing stop at predetermined profit thresholds to secure capital at break-even or other targeted levels, customizable within your script's settings.

IonQ, Inc. (IONQ)

+ Trailing Stop Snippet

@ Daily

1.97

Risk Reward

1,034.00 %

Total ROI

86

International Business Machines Corporation (IBM)

+ Trailing Stop Snippet

@ 1 h

1.52

Risk Reward

717.42 %

Total ROI

1445

Tilray Brands, Inc. - Class 2 (TLRY)

+ Trailing Stop Snippet

@ 4 h

1.37

Risk Reward

34,946.70 %

Total ROI

236

NIFTY 50 (NIFTY)

+ Trailing Stop Snippet

@ 1 h

1.29

Risk Reward

223.63 %

Total ROI

1333

Ford Motor Company (F)

+ Trailing Stop Snippet

@ Daily

1.27

Risk Reward

11,009.38 %

Total ROI

853

Boeing Company (The) (BA)

+ Trailing Stop Snippet

@ 2 h

1.26

Risk Reward

1,404.38 %

Total ROI

1323

VIRTUAL / TetherUS (VIRTUALUSDT)

+ Trailing Stop Snippet

@ Daily

1.23

Risk Reward

80.55 %

Total ROI

32

Ford Motor Company (F)

+ Trailing Stop Snippet

@ Daily

1.21

Risk Reward

8,765.33 %

Total ROI

850

NextEra Energy Partners, LP (NEP)

+ Trailing Stop Snippet

@ 4 h

1.18

Risk Reward

104.06 %

Total ROI

350

KAIA / TetherUS (KAIAUSDT)

+ Trailing Stop Snippet

@ 4 h

1.17

Risk Reward

260.25 %

Total ROI

297

Western Digital Corporation (WDC)

+ Trailing Stop Snippet

@ 1 h

1.17

Risk Reward

1,346.56 %

Total ROI

1413

Cronos/Tether (CROUSDT)

+ Trailing Stop Snippet

@ 4 h

1.15

Risk Reward

1,763.62 %

Total ROI

1170

Create your account for free to see all 128+ backtests

Access filters, details, best timeframes, explore 100K+ backtests and more

Active Trades

Create your account to see on which symbols Trailing Stop Snippet is currently trading on.

Trailing Stop Snippet backtest statistics

Aggregated across every validated backtest TradeSearcher has run on this strategy. Figures update automatically as new backtests are added — they are not edited by hand. Classified as swing by holding period.

128
Backtests run
1.1
Avg profit factor
>1,000%
Avg net profit
+17%
Avg annualized return
65%
Avg max drawdown
0.12
Avg Sharpe ratio

On average, backtests of this strategy beat a buy-and-hold baseline by >1,000% over the same window.

Performance by asset class

MarketBacktestsAvg profit factorAvg net profitAvg max drawdownAvg Sharpe
Crypto901.1+918%83%0.22
Stocks1,5101.1>1,000%63%0.10
Forex1051.1+53%18%0.06

Backtests use the validated-universe filter: non-repainting scripts, over 15 trades, non-excluded. Per-market rows appear only when at least one backtest exists for that asset class.

Explore the best Trading & TradingView strategies

Stop trading blindly. Explore quality-gated backtests and improve your trading skills with data.

Start for free