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

Risk Reward

1,005.92 %

Total ROI

84

Total Trades

International Business Machines Corporation (IBM)

+ Trailing Stop Snippet

@ 1 h

1.63

Risk Reward

780.21 %

Total ROI

1425

Total Trades

Tilray Brands, Inc. - Class 2 (TLRY)

+ Trailing Stop Snippet

@ 4 h

1.43

Risk Reward

38,025.62 %

Total ROI

232

Total Trades

NIFTY 50 (NIFTY)

+ Trailing Stop Snippet

@ 1 h

1.29

Risk Reward

220.48 %

Total ROI

1321

Total Trades

Ford Motor Company (F)

+ Trailing Stop Snippet

@ Daily

1.27

Risk Reward

11,009.38 %

Total ROI

853

Total Trades

CrowdStrike Holdings, Inc. (CRWD)

+ Trailing Stop Snippet

@ 1 h

1.24

Risk Reward

1,573.00 %

Total ROI

826

Total Trades

Boeing Company (The) (BA)

+ Trailing Stop Snippet

@ 2 h

1.22

Risk Reward

1,182.71 %

Total ROI

1315

Total Trades

Ford Motor Company (F)

+ Trailing Stop Snippet

@ Daily

1.21

Risk Reward

8,765.33 %

Total ROI

850

Total Trades

VIRTUAL / TetherUS (VIRTUALUSDT)

+ Trailing Stop Snippet

@ Daily

1.19

Risk Reward

65.03 %

Total ROI

29

Total Trades

Crypto.com Coin / United States Dollar (CROUSD)

+ Trailing Stop Snippet

@ Daily

1.19

Risk Reward

345.75 %

Total ROI

126

Total Trades

NextEra Energy Partners, LP (NEP)

+ Trailing Stop Snippet

@ 4 h

1.18

Risk Reward

104.06 %

Total ROI

350

Total Trades

Cronos/Tether (CROUSDT)

+ Trailing Stop Snippet

@ Daily

1.17

Risk Reward

5,854.88 %

Total ROI

183

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

133
Backtests run
1.1
Avg profit factor
>1,000%
Avg net profit
+19%
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%62%0.10
Forex1051.1+38%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