Nadaraya-Watson Showed +9,505.4% on SOL. Real-Time: +9.4%
In this post
The chart that looks too good
The Nadaraya-Watson Envelope is one of those TradingView scripts that sells itself in a screenshot. Price pokes below the lower band, an arrow says buy, price snaps back. Pokes above the upper band, sell, it drops. Scroll back a year and it looks like it called almost every turn.
So we ran a Nadaraya-Watson Envelope backtest two ways. First, trading exactly what the chart shows. Then trading only what the indicator actually knew at the moment each candle closed.
On SOL 1h the chart version made +9,505.4% in a year with an 83.5% win rate. The real-time version made +9.4%, with a 55.3% drawdown on the way.
That gap is the whole story. The pretty version repaints.
What "repaint" means here
The popular version of this indicator draws its line with a kernel regression that looks at bars on both sides of each point. That's fine for a smooth line on a finished chart. It's useless for trading, because when you're standing on a candle you don't have the bars to its right yet.
When a new candle prints, the line and bands from the last stretch of bars get redrawn. The band that price "bounced off" yesterday wasn't where it is now. The arrows you see in hindsight are partly built from the future.
The fix is easy and well known: estimate each point only from bars up to that point. Same kernel, same settings, no peeking. That's the version you could actually have traded.
The rules we tested
- Estimate: Gaussian kernel regression, bandwidth 8.
- Bands: the estimate plus and minus 3 times the average absolute distance between price and the estimate over the last 499 bars.
- Signals: long when the close crosses below the lower band, short when it crosses above the upper band. Hold until the opposite signal.
- Repainting version: the estimate and the average distance use bars on both sides of each candle, which is what the chart shows after the fact.
- Real-time version: both use only bars up to the signal candle.
- Costs: 0.05% fee per side, 1x, fills at the candle close, no slippage. Binance spot candles, 2025-11-12 to 2026-11-12.
Chart vs reality, all six runs
| Run | Repainting: win rate | Repainting: net | Real-time: trades | Real-time: win rate | Real-time: net | Real-time: max drawdown | Buy & hold |
|---|---|---|---|---|---|---|---|
| BTC 1h | 85.9% | +1,539.2% | 61 | 65.6% | +16.2% | -29.4% | -29.0% |
| BTC 4h | 69.2% | +86.3% | 8 | 25.0% | -41.2% | -49.7% | -28.0% |
| ETH 1h | 83.7% | +2,694.2% | 65 | 67.7% | +16.1% | -39.2% | -41.3% |
| ETH 4h | 66.7% | +366.7% | 12 | 50.0% | -21.8% | -45.6% | -40.6% |
| SOL 1h | 83.5% | +9,505.4% | 52 | 61.5% | +9.4% | -55.3% | -47.7% |
| SOL 4h | 82.6% | +583.6% | 5 | 20.0% | -66.2% | -66.4% | -46.1% |

That's the curve the screenshot implies. Smooth, steep, barely a dip.

And that's what trading it live would have looked like. Up early, a long grind back below zero, then a recovery to +9.4%.
What's left once you take the future out
The win rate drops, but not to nothing. On 1h the real-time version still won 61.5% to 67.7% of trades. That's the mean reversion part working: price stretched three average deviations from a smooth line does tend to come back a bit.
The 1h runs made a little money. BTC +16.2%, ETH +16.1%, SOL +9.4%, in a year where holding lost 29.0% to 47.7%. Profit factor was 1.19 to 1.23. That's a thin edge, and the drawdowns of -29.4% to -55.3% are far too big for the return.
The 4h runs fell apart. BTC -41.2%, ETH -21.8%, SOL -66.2%. These are tiny samples, 5 to 12 trades in a year, so don't read much into the exact numbers. What they do show is the classic failure of fading bands in a trend: on 4h a stretched move often just keeps going, and a reversal system with no stop holds the loser until the opposite signal.
Fees weren't the problem. The real-time 1h runs paid 5.2% to 6.4% of capital in fees. The issue is the signal, not the bill.
Test the no-repaint version yourself
- Open a BTC, ETH or SOL chart on 1h.
- Paste the script below into the Pine Editor and add it to the chart.
- Open the Strategy Tester. Then compare it with any repainting Nadaraya-Watson indicator on the same chart and watch where the arrows disagree.
//@version=5
strategy("Nadaraya-Watson Envelope, no repaint", overlay=true, process_orders_on_close=true,
commission_type=strategy.commission.percent, commission_value=0.05,
default_qty_type=strategy.percent_of_equity, default_qty_value=100, max_bars_back=499)
h = input.float(8.0, "Bandwidth")
mult = input.float(3.0, "Band multiplier")
win = 100
float num = 0.0
float den = 0.0
for i = 0 to math.min(win, bar_index)
w = math.exp(-(i * i) / (2 * h * h))
num += close[i] * w
den += w
est = num / den
mae = ta.sma(math.abs(close - est), 499) * mult
upper = est + mae
lower = est - mae
if ta.crossunder(close, lower)
strategy.entry("Long", strategy.long)
if ta.crossover(close, upper)
strategy.entry("Short", strategy.short)
plot(est, "Estimate", color.gray)
plot(upper, "Upper", color.red)
plot(lower, "Lower", color.teal)
It won't match our numbers to the decimal because the first few hundred bars of history differ. The behaviour will.
Verdict
Don't judge any indicator by its arrows on a finished chart. If a script redraws its past, its screenshot tells you nothing about what you could have traded.
The honest version of this one is a mild mean reversion signal on 1h with ugly drawdowns. I wouldn't trade it alone. If I kept anything, it would be the 1h signal with a hard stop and a trend filter, the same two things that turned plain Bollinger reversion around in our fixing-indicators test.
FAQ
Does the Nadaraya-Watson Envelope repaint? The popular smoothed version does: it recalculates past values as new bars arrive. Versions that only use past bars don't, and that's the one in the table above.
Is the Nadaraya-Watson indicator accurate? On a finished chart it looks very accurate because it uses future bars. Traded in real time on one year of BTC, ETH and SOL, it won 61.5% to 67.7% of trades on 1h and made a small profit, and lost money on 4h.
What settings did you use? Bandwidth 8, band multiplier 3, average deviation over 499 bars, 1h and 4h candles, 0.05% fee per side.
Indicator Reality Checks more ›
🎁 Full pack (all coins, all settings) → free when you sign up through our link