logo
Developers

Strategy Template - V2

Script from: TradingViewSwingTrend followingBreakout

The “Strategy Template - V2” integrates advanced trend-following mechanisms by using Weekly and Daily Donchian channels to establish trend bias for precise entry and exit points. It elevates the original template with complex conditions for market, stop, limit, and stop-limit order types, alongside a considered approach to exits and take profits. This strategy not only acts as a fully operational system but also serves as a customizable template for developing individual strategies.

Audit verdict

RepaintsUpdated Jul 28, 2026

Repainting detected

Our audit flags: request.security uses barmerge.lookahead_on (potential repaint), line 39. Its backtests can show results that cannot be reproduced in live trading.

2,066backtests3 markets
1repaint error
32robust scoreranked median 52
91%max drawdownon best backtest

Audit details

How we decide whether a strategy enters our rankings. Read the methodology →

✕
Repainting audit
7 of 8 checks passed.
✕
request.security uses barmerge.lookahead_on (potential repaint)
Found on line 39. Prefer lookahead_off or index the series with [1] or gate on barstate.isconfirmed.
✓
Script availability
Open-source, still published on TradingView.
–
Statistical edge
Not meaningful: repainting inflates every backtest statistic of this script.
✕
Quality gate
None of the 98 backtests with more than 15 trades passes our quality gate.
✕
Robust score
32/100, below the median of 52 for ranked strategies.

Why repainting matters

A repainting script uses values that were not known when the bar closed. Its backtest trades on that future information, so live results diverge from what the backtest shows, often by a wide margin.

Best 5 of 2,066 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
Plug Power, Inc.
NASDAQ:PLUG
2H+1,505%1.0512091%
Riot Platforms, Inc.
NASDAQ:RIOT
4H+1,121%1.813676%
Plug Power, Inc.
NASDAQ:PLUG
4H+878%1.165569%
Ethereum Classic / TetherUS
BINANCE:ETCUSDT
4H+663%1.1811557%
Bitcoin / TetherUS PERPETUAL FUTURES
BINANCE:BTCUSDTPERP
1D+504%79.54510%
⚠Repainting signature: these returns depend on information that was not available in real time, so they cannot be reproduced live.

Does Strategy Template - V2 repaint?

Yes. request.security uses barmerge.lookahead_on (potential repaint) (line 39). Backtests of this script can show returns that cannot be reproduced in live trading.

Strategies that passed our audit

Ranked strategies from the same family, ordered by robust score.

Explore the best Trading & TradingView strategies

Stop trading blindly. Explore quality-gated backtests and improve your trading skills with data.

Start for free