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,028.63 %

Total ROI

85

International Business Machines Corporation (IBM)

+ Trailing Stop Snippet

@ 1 h

1.49

Risk Reward

680.27 %

Total ROI

1443

Tilray Brands, Inc. - Class 2 (TLRY)

+ Trailing Stop Snippet

@ 4 h

1.40

Risk Reward

36,728.27 %

Total ROI

235

NIFTY 50 (NIFTY)

+ Trailing Stop Snippet

@ 1 h

1.28

Risk Reward

218.32 %

Total ROI

1331

Ford Motor Company (F)

+ Trailing Stop Snippet

@ Daily

1.27

Risk Reward

11,009.38 %

Total ROI

853

VIRTUAL / TetherUS (VIRTUALUSDT)

+ Trailing Stop Snippet

@ Daily

1.25

Risk Reward

87.80 %

Total ROI

31

Boeing Company (The) (BA)

+ Trailing Stop Snippet

@ 2 h

1.25

Risk Reward

1,338.81 %

Total ROI

1321

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

Cronos/Tether (CROUSDT)

+ Trailing Stop Snippet

@ 4 h

1.18

Risk Reward

1,985.56 %

Total ROI

1166

Crypto.com Coin / United States Dollar (CROUSD)

+ Trailing Stop Snippet

@ Daily

1.16

Risk Reward

300.16 %

Total ROI

128

Cronos/Tether (CROUSDT)

+ Trailing Stop Snippet

@ Daily

1.16

Risk Reward

5,380.23 %

Total ROI

186

Create your account for free to see all 130+ 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.

130
Backtests run
1.1
Avg profit factor
>1,000%
Avg net profit
+18%
Avg annualized return
64%
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
Crypto911.1>1,000%83%0.22
Stocks1,5101.1>1,000%63%0.10
Forex1051.1+39%16%0.05

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