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

Risk Reward

351.73 %

Total ROI

22

Total Trades

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

Total Trades

Meta Platforms, Inc. (META)

+ Backtesting Module

@ 4 h

2.88

Risk Reward

602.45 %

Total ROI

35

Total Trades

Boeing Company (The) (BA)

+ Backtesting Module

@ 15 min

1.83

Risk Reward

233.69 %

Total ROI

104

Total Trades

Fetch.AI / TetherUS (FETUSDT)

+ Backtesting Module

@ 4 h

1.79

Risk Reward

46,355.43 %

Total ROI

80

Total Trades

Stellantis NV (STLAP)

+ Backtesting Module

@ Daily

1.54

Risk Reward

276.18 %

Total ROI

37

Total Trades

IREN LIMITED (IREN)

+ Backtesting Module

@ 1 h

1.46

Risk Reward

607.69 %

Total ROI

37

Total Trades

RUNE / TetherUS (RUNEUSDT)

+ Backtesting Module

@ 4 h

1.35

Risk Reward

864.55 %

Total ROI

62

Total Trades

AVAX / TetherUS (AVAXUSDT)

+ Backtesting Module

@ 2 h

1.31

Risk Reward

1,164.70 %

Total ROI

136

Total Trades

CAKE / TetherUS (CAKEUSDT)

+ Backtesting Module

@ 15 min

1.27

Risk Reward

43.87 %

Total ROI

135

Total Trades

Cronos/Tether (CROUSDT)

+ Backtesting Module

@ 2 h

1.27

Risk Reward

884.22 %

Total ROI

155

Total Trades

Spotify Technology S.A. (SPOT)

+ Backtesting Module

@ 2 h

1.24

Risk Reward

202.69 %

Total ROI

41

Total Trades
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
+32%
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.18
Stocks7201.5+259%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