logo
Developers

Trailing Sell

Script from: TradingViewLongTermTrend followingMomentum

This strategy demonstrates how to execute a trailing sell. Upon an exit signal, rather than selling immediately, it follows the price upward for longs, selling when the price drops by a small percentage. The order executes when the next bar closes. It may slightly increase profits. Improvements include using stop orders instead of market orders for trailing and refining entry/exit signal handling, among other updates.

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 4 h

11.20

Risk Reward

54,107.32 %

Total ROI

107

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 4 h

9.80

Risk Reward

1,249.91 %

Total ROI

18

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 4 h

4.77

Risk Reward

6,471.42 %

Total ROI

91

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 4 h

4.74

Risk Reward

466.24 %

Total ROI

19

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

4.10

Risk Reward

538.62 %

Total ROI

20

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

3.95

Risk Reward

64.84 %

Total ROI

32

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

3.80

Risk Reward

2,312.67 %

Total ROI

89

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

3.10

Risk Reward

398.00 %

Total ROI

53

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

3.02

Risk Reward

4,119.97 %

Total ROI

36

Broadcom Inc. (AVGO)

+ Trailing Sell

@ Daily

2.99

Risk Reward

548.65 %

Total ROI

31

Costco Wholesale Corporation (COST)

+ Trailing Sell

@ Daily

2.82

Risk Reward

2,268.18 %

Total ROI

64

Globe Life Inc. (GL)

+ Trailing Sell

@ 5 min

2.80

Risk Reward

67.88 %

Total ROI

19

Create your account for free to see all 65+ backtests

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

Active Trades

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

Trailing Sell 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 long-term by holding period.

65
Backtests run
2.2
Avg profit factor
>1,000%
Avg net profit
+28%
Avg annualized return
48%
Avg max drawdown
0.16
Avg Sharpe ratio

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

Performance by asset class

MarketBacktestsAvg profit factorAvg net profitAvg max drawdownAvg Sharpe
Crypto541.4>1,000%71%0.15
Stocks7292.6>1,000%43%0.17
Forex671.8+134%18%0.16

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