logo
Developers

Mix1 : Ema Cross + Trend Channel [Gu5] - Backtest

Script from: TradingViewSwingTrend followingMomentum

The "Mix1: Ema Cross + Trend Channel [Gu5]" backtest hinges on moving average crossovers within a defined trend channel. It uses an SMA200 to confirm the overall trend direction, sending trade alerts only when both the EMA crossover and trend confirmation align. Recent updates include bug fixes and code optimization.

Audit verdict

RepaintsUpdated Jul 28, 2026

Repainting detected

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

458backtests3 markets
1repaint error
18robust scoreranked median 52
36%max drawdownon best backtest

Audit details

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

✕
Repainting audit
6 of 8 checks passed.
✕
request.security uses barmerge.lookahead_on (potential repaint)
Found on line 83. 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
1 of 73 backtests with more than 15 trades pass our quality gate.
✕
Robust score
18/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 458 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
Affirm Holdings, Inc.
NASDAQ:AFRM
2H+564%1.4420536%
Plug Power, Inc.
NASDAQ:PLUG
2H+518%1.1228573%
Peloton Interactive, Inc.
NASDAQ:PTON
4H+391%1.4414147%
Lucid Group, Inc.
NASDAQ:LCID
2H+371%1.2722353%
Plug Power, Inc.
NASDAQ:PLUG
1H+153%1.0644170%
⚠Repainting signature: these returns depend on information that was not available in real time, so they cannot be reproduced live.

Does Mix1 : Ema Cross + Trend Channel [Gu5] - Backtest repaint?

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