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 profit factor above 3

@ 4 h

11.20

Profit Factor

54,107.32 %

Total ROI

107

Premium users only

Premium users can access all backtests with a profit factor above 3

@ 4 h

4.74

Profit Factor

466.24 %

Total ROI

19

Premium users only

Premium users can access all backtests with a profit factor above 3

@ Daily

4.10

Profit Factor

538.62 %

Total ROI

20

Premium users only

Premium users can access all backtests with a profit factor above 3

@ Daily

3.79

Profit Factor

67.80 %

Total ROI

35

Premium users only

Premium users can access all backtests with a profit factor above 3

@ Daily

3.22

Profit Factor

2,163.09 %

Total ROI

90

Premium users only

Premium users can access all backtests with a profit factor above 3

@ 4 h

3.16

Profit Factor

5,597.77 %

Total ROI

92

Premium users only

Premium users can access all backtests with a profit factor above 3

@ DailyTradeSearcher backtest

3.14

Profit Factor

191.18 %

Total ROI

24

Premium users only

Premium users can access all backtests with a profit factor above 3

@ Daily

3.10

Profit Factor

398.00 %

Total ROI

53

Premium users only

Premium users can access all backtests with a profit factor above 3

@ Daily

3.02

Profit Factor

4,119.97 %

Total ROI

36

Broadcom Inc. (AVGO)

+ Trailing Sell

@ Daily

2.99

Profit Factor

548.65 %

Total ROI

31

Globe Life Inc. (GL)

+ Trailing Sell

@ 5 min

2.80

Profit Factor

67.88 %

Total ROI

19

LVMH (MC)

+ Trailing Sell

@ Daily

2.73

Profit Factor

1,537.73 %

Total ROI

175

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

62
Backtests run
2.1
Avg profit factor
>1,000%
Avg net profit
+26%
Avg annualized return
48%
Avg max drawdown
0.15
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
Crypto521.4>1,000%71%0.15
Stocks7302.4>1,000%43%0.16
Forex661.4+171%18%0.01

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