logo
Developers

Backtesting Module

Script from: TradingViewLongTermTrend followingBot

The "Backtesting Module" codes trading strategies efficiently, converting boolean conditions into integers usable across scripts in Pine Script. Follow three steps: define entry/exit variables in your script, plot them on a chart, then test with the module. Visualize trade outcomes via insights on long/short trades, success percentage, and market direction adaptability. Adjust settings like initial balance and commission for realistic backtest results.

Premium users only

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

@ Daily

3.01

Risk Reward

467.43 %

Total ROI

18

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 4 h

2.91

Risk Reward

312.80 %

Total ROI

23

Boeing Company (The) (BA)

+ Backtesting Module

@ 15 min

1.85

Risk Reward

224.82 %

Total ROI

101

Fetch.AI / TetherUS (FETUSDT)

+ Backtesting Module

@ 4 h

1.79

Risk Reward

46,355.43 %

Total ROI

80

Stellantis NV (STLAP)

+ Backtesting Module

@ Daily

1.54

Risk Reward

275.98 %

Total ROI

37

IREN LIMITED (IREN)

+ Backtesting Module

@ 1 h

1.31

Risk Reward

496.31 %

Total ROI

40

RUNE / TetherUS (RUNEUSDT)

+ Backtesting Module

@ 4 h

1.28

Risk Reward

739.66 %

Total ROI

64

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 2 h

1.26

Risk Reward

216.00 %

Total ROI

42

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 1 h

1.24

Risk Reward

374.26 %

Total ROI

80

AVAX / TetherUS (AVAXUSDT)

+ Backtesting Module

@ 2 h

1.19

Risk Reward

407.99 %

Total ROI

118

Hedera Hashgraph / TetherUS (HBARUSDT)

+ Backtesting Module

@ 4 h

1.17

Risk Reward

1,532.14 %

Total ROI

94

GALA / TetherUS (GALAUSDT)

+ Backtesting Module

@ 4 h

1.16

Risk Reward

406.81 %

Total ROI

52

Create your account for free to see all 37+ backtests

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

Active Trades

Create your account to see on which symbols Backtesting Module is currently trading on.

Backtesting Module 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.

37
Backtests run
1.3
Avg profit factor
>1,000%
Avg net profit
+28%
Avg annualized return
65%
Avg max drawdown
0.14
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
Crypto651.1>1,000%72%0.16
Stocks7241.4+188%49%0.11
Forex68——31%—

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