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

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

Premium users only

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

@ Daily

3.42

Risk Reward

285.26 %

Total ROI

22

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

Tesla, Inc. (TSLA)

+ Linear trend

@ Daily

2.86

Risk Reward

615.40 %

Total ROI

33

Costco Wholesale Corporation (COST)

+ Linear trend

@ Daily

2.74

Risk Reward

119.84 %

Total ROI

42

Sandisk Corporation (SNDK)

+ Linear trend

@ 1 h

2.54

Risk Reward

463.95 %

Total ROI

55

Robinhood Markets, Inc. (HOOD)

+ Linear trend

@ 4 h

2.46

Risk Reward

230.28 %

Total ROI

33

Eli Lilly and Company (LLY)

+ Linear trend

@ Daily

2.44

Risk Reward

258.64 %

Total ROI

42

MicroStrategy Incorporated (MSTR)

+ Linear trend

@ Daily

2.43

Risk Reward

2,171.15 %

Total ROI

30

Zcash / TetherUS (ZECUSDT)

+ Linear trend

@ 4 h

2.43

Risk Reward

2,303.48 %

Total ROI

207

Sandisk Corporation (SNDK)

+ Linear trend

@ 2 h

2.35

Risk Reward

426.76 %

Total ROI

25

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

106
Backtests run
1.5
Avg profit factor
+431%
Avg net profit
+28%
Avg annualized return
45%
Avg max drawdown
0.15
Avg Sharpe ratio

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

Performance by asset class

MarketBacktestsAvg profit factorAvg net profitAvg max drawdownAvg Sharpe
Crypto901.3+507%45%0.15
Stocks6351.7+349%35%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