NinjaScript and Pine developer

Bootstraps: a forecast fan for TradingView (Pine v6)

Bootstraps draws a fan of where price could go over the next few bars, built by resampling the chart's own recent returns thousands of ways. It is a statistical what-if, not a prediction. Open source, free on TradingView.

Bootstraps on the S&P 500 E-mini futures 1 hour chart: a shaded fan with a median line to the right of the last bar, and a small table of median move, 90% range, chance of ending higher and touch odds.
S&P 500 E-mini futures, 1 hour. The fan starts at the last closed bar.

What you see

How it works

Tested, with the settings it ships with

I tested the method on 5-minute regular-hours bars for seven futures markets (equity indices, gold, Treasury notes, euro FX), 2015 to 2026, using walk-forward checks: at each point, forecast using only earlier data, then see where price actually went. Averages across the seven markets:

Horizon History used (Preset) 90% band contained the outcome 50% band contained the outcome
10 bars500 bars88%52%
20 bars1000 bars88%52%
40 bars1000 bars87%51%

Important

Not trading advice. Past behaviour does not predict future results.

Get it

Stationary Bootstrap Fan on TradingView

Need something custom?

I write Pine v6 and NinjaScript indicators and strategies, and audit existing scripts.

Upwork profile