logo
Developers

Linear trend

Script from: TradingViewSwingTrend followingMomentumCandlestick

Use Linear Regression (LR) as an oscillator by subtracting a slow from a fast LR, creating a line around zero. Open trades when LR crosses above a threshold, and close when it crosses below. Implement EMA 200 as a trend filter; trade only when prices are above EMA 200. This strategy leverages trend momentum for potential gains.

Premium users only

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

@ Daily

5.64

Risk Reward

417.89 %

Total ROI

18

Total Trades

Premium users only

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

@ Daily

3.42

Risk Reward

115.59 %

Total ROI

21

Total Trades

Premium users only

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

@ Daily

3.41

Risk Reward

186.74 %

Total ROI

23

Total Trades

Premium users only

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

@ Daily

3.22

Risk Reward

261.95 %

Total ROI

21

Total Trades

Tesla, Inc. (TSLA)

+ Linear trend

@ Daily

2.86

Risk Reward

615.40 %

Total ROI

33

Total Trades

Costco Wholesale Corporation (COST)

+ Linear trend

@ Daily

2.74

Risk Reward

119.84 %

Total ROI

42

Total Trades

Eli Lilly and Company (LLY)

+ Linear trend

@ Daily

2.47

Risk Reward

260.66 %

Total ROI

41

Total Trades

Robinhood Markets, Inc. (HOOD)

+ Linear trend

@ 4 h

2.46

Risk Reward

230.28 %

Total ROI

33

Total Trades

Sandisk Corporation (SNDK)

+ Linear trend

@ 1 h

2.44

Risk Reward

433.74 %

Total ROI

54

Total Trades

MicroStrategy Incorporated (MSTR)

+ Linear trend

@ Daily

2.43

Risk Reward

2,171.15 %

Total ROI

30

Total Trades

Sandisk Corporation (SNDK)

+ Linear trend

@ 2 h

2.35

Risk Reward

426.76 %

Total ROI

25

Total Trades

Fetch.AI / TetherUS (FETUSDT)

+ Linear trend

@ Daily

2.26

Risk Reward

3,316.13 %

Total ROI

19

Total Trades
Create your account for free to see all 114+ backtests

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

Active Trades

Create your account to see on which symbols Linear trend is currently trading on.

Linear trend 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.

114
Backtests run
1.5
Avg profit factor
+421%
Avg net profit
+31%
Avg annualized return
46%
Avg max drawdown
0.16
Avg Sharpe ratio

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

Performance by asset class

MarketBacktestsAvg profit factorAvg net profitAvg max drawdownAvg Sharpe
Crypto951.3+490%43%0.16
Stocks6301.7+344%34%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