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

@ Daily

3.01

Profit Factor

467.43 %

Total ROI

18

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 4 h

2.91

Profit Factor

312.80 %

Total ROI

23

Gold Futures (GC1!)

+ Backtesting Module

@ DailyTradeSearcher backtest

2.39

Profit Factor

186.77 %

Total ROI

27

Fetch.AI / TetherUS (FETUSDT)

+ Backtesting Module

@ 4 h

1.79

Profit Factor

46,355.43 %

Total ROI

80

Boeing Company (The) (BA)

+ Backtesting Module

@ 15 min

1.78

Profit Factor

217.99 %

Total ROI

107

Stellantis NV (STLAP)

+ Backtesting Module

@ Daily

1.54

Profit Factor

275.98 %

Total ROI

37

RUNE / TetherUS (RUNEUSDT)

+ Backtesting Module

@ 4 h

1.39

Profit Factor

1,027.90 %

Total ROI

65

IREN LIMITED (IREN)

+ Backtesting Module

@ 1 h

1.28

Profit Factor

451.44 %

Total ROI

41

AVAX / TetherUS (AVAXUSDT)

+ Backtesting Module

@ 2 h

1.24

Profit Factor

506.38 %

Total ROI

119

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 1 h

1.23

Profit Factor

352.04 %

Total ROI

81

Gold Futures (GC1!)

+ Backtesting Module

@ 15 minTradeSearcher backtest

1.19

Profit Factor

69.06 %

Total ROI

125

Hedera Hashgraph / TetherUS (HBARUSDT)

+ Backtesting Module

@ 4 h

1.18

Profit Factor

1,589.89 %

Total ROI

95

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

42
Backtests run
1.3
Avg profit factor
>1,000%
Avg net profit
+29%
Avg annualized return
60%
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+182%49%0.10
Forex681.1+8%26%0.04

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