logo
Developers

Straight Trend V1

Script from: TradingViewSwingTrend followingBreakout

The "Straight Trend V1" strategy employs a unique approach by using the opening price of a specified timeline to establish a reference. A trend line is drawn to the current price and then smoothed using the Donchian channel method, utilizing the highest and lowest values to reduce noise and false signals. The trend line forms a price channel based on the time-based opening price. This strategy generates BUY/SELL signals by comparing the closing price direction with the channel. The inverse channel line acts as a STOP LOSS and a signal to change direction. Settings allow for customization of Take Profit percentages and the strategy shows increased effectiveness with Heikin-Ashi bars. Enhancements include a multi-tiered Take Profit section for strategic exits.

Audit verdict

RepaintsUpdated Jul 28, 2026

Repainting detected

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

2,298backtests3 markets
1repaint error
32robust scoreranked median 52
65%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 7. 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
16 of 157 backtests with more than 15 trades pass 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,298 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
AMC Entertainment Holdings, Inc.
NYSE:AMC
1H+11,393%1.2082965%
AMC Entertainment Holdings, Inc.
NYSE:AMC
2H+4,539%1.2972970%
Cardano / TetherUS
BINANCE:ADAUSDT
4H+2,558%1.1983352%
Ford Motor Company
NYSE:F
2H+2,250%1.1592364%
VeChain / TetherUS
BINANCE:VETUSDT
4H+1,995%1.3182769%
⚠Repainting signature: these returns depend on information that was not available in real time, so they cannot be reproduced live.

Does Straight Trend V1 repaint?

Yes. request.security uses barmerge.lookahead_on (potential repaint) (line 7). 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