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

@ 4 h

3.03

Risk Reward

652.59 %

Total ROI

37

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.98

Risk Reward

277.10 %

Total ROI

104

Fetch.AI / TetherUS (FETUSDT)

+ Backtesting Module

@ 4 h

1.79

Risk Reward

46,355.43 %

Total ROI

80

IREN LIMITED (IREN)

+ Backtesting Module

@ 1 h

1.58

Risk Reward

768.19 %

Total ROI

38

Stellantis NV (STLAP)

+ Backtesting Module

@ Daily

1.54

Risk Reward

275.98 %

Total ROI

37

CAKE / TetherUS (CAKEUSDT)

+ Backtesting Module

@ 15 min

1.37

Risk Reward

56.33 %

Total ROI

140

RUNE / TetherUS (RUNEUSDT)

+ Backtesting Module

@ 4 h

1.28

Risk Reward

739.66 %

Total ROI

64

AVAX / TetherUS (AVAXUSDT)

+ Backtesting Module

@ 2 h

1.27

Risk Reward

533.55 %

Total ROI

114

Bloom Energy Corporation (BE)

+ Backtesting Module

@ 1 h

1.25

Risk Reward

970.55 %

Total ROI

71

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 2 h

1.24

Risk Reward

202.69 %

Total ROI

41

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

41
Backtests run
1.3
Avg profit factor
>1,000%
Avg net profit
+31%
Avg annualized return
64%
Avg max drawdown
0.15
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
Crypto671.2>1,000%72%0.17
Stocks7201.5+277%50%0.11
Forex6831%

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