1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
MC Range & Niveles | Distribución Empírica + Montecarlo plots projected price range boundaries directly on the price chart alongside a distribution profile histogram and a summary statistics table. The script computes percentile levels, directional probability bias, and volatility adjustments based on historical price data or implied volatility inputs. Key inputs allow customization of simulation count, lookback periods, confidence intervals, and drift weighting.
Monte Carlo price projections via empirical bootstrap or normal distribution
Visual distribution profile histogram and price target boxes on chart
Customizable confidence intervals, drift weighting, and simulation runs
Summary statistics table displaying percentiles and directional bias
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Muestra = barras visibles en el gráfico
bool
true
useVis
Ventana manual (si no usás barras visibles)
int
252
lookback
Horizonte (barras ≈ DTE)
int
5
horizon
Barras por año (252 D / 52 W / 12 M)
int
252
factor
Método
string
Bootstrap empírico
modo
Simulaciones
int
1500
nSims
Confianza del rango (%)
float
90.0
conf
Peso del drift histórico (0 = neutral, 1 = pleno)
float
0.5
driftW
Reescalar a volatilidad reciente
bool
false
useFHS
Ventana de vol. reciente
int
20
volShort
Semilla (0 = aleatoria)
int
12345
seed
Umbral de sesgo direccional (%)
float
55.0
biasTh
Show all 21 settings
Setting
Type
Default
Variable
IV ATM anual (%) — 0 = no usar
float
0.0
ivIn
Mostrar rango (cajas)
bool
true
showBox
Mostrar perfil de distribución
bool
true
showHist
Ancho del perfil (barras)
int
10
histW
Mostrar tabla de estadísticas
bool
true
showStats
Posición de tabla
string
Arriba derecha
tblPosStr
Color alcista
color
#26a69a
colUp
Color bajista
color
#ef5350
colDn
Color neutral
color
#b2b5be
colNeu
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
This indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc
This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I