Indicator · Pine Script v6 · On the chart

Probability Grid [LuxAlgo]

by regalouisei· code credited to LuxAlgo

The Probability Grid indicator calculates statistical probability distribution levels derived from historical pivot high and low points.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code354
Settings40inputs
LicenceNone stated
Last update8 months ago25 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

Probability Grid [LuxAlgo] analyzes price movements over a configured swing length and maximum reversal count to project probability zones directly onto the price chart. Users can evaluate how far prices typically extend beyond or within specific percentile thresholds. Input settings allow traders to adjust the pivot detection length, toggle data normalization, select probability computation modes, and customize individual percentile levels and line styles.

Details

Published by

regalouisei on GitHub

Code credit

LuxAlgo, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Swing Lengthint20lengthInput
Maximum Reversalsint1000maxPivotsInput
Normalize DatabooltruenormalizeDataInput
ProbabilitystringBEYONDprobabilityModeInput
percentile0Inputbooltruepercentile0Input
percentile0DataInputint0percentile0DataInput
percentile0StyleInputstringDOTTEDpercentile0StyleInput
percentile1Inputbooltruepercentile1Input
percentile1DataInputint10percentile1DataInput
percentile1StyleInputstringDOTTEDpercentile1StyleInput
percentile2Inputbooltruepercentile2Input
percentile2DataInputint20percentile2DataInput
Show all 40 settings
SettingTypeDefaultVariable
percentile2StyleInputstringDOTTEDpercentile2StyleInput
percentile3Inputbooltruepercentile3Input
percentile3DataInputint30percentile3DataInput
percentile3StyleInputstringDOTTEDpercentile3StyleInput
percentile4Inputbooltruepercentile4Input
percentile4DataInputint40percentile4DataInput
percentile4StyleInputstringDOTTEDpercentile4StyleInput
percentile5Inputbooltruepercentile5Input
percentile5DataInputint50percentile5DataInput
percentile5StyleInputstringDOTTEDpercentile5StyleInput
percentile6Inputbooltruepercentile6Input
percentile6DataInputint60percentile6DataInput
percentile6StyleInputstringDOTTEDpercentile6StyleInput
percentile7Inputbooltruepercentile7Input
percentile7DataInputint70percentile7DataInput
percentile7StyleInputstringDOTTEDpercentile7StyleInput
percentile8Inputbooltruepercentile8Input
percentile8DataInputint80percentile8DataInput
percentile8StyleInputstringDOTTEDpercentile8StyleInput
percentile9Inputbooltruepercentile9Input
percentile9DataInputint90percentile9DataInput
percentile9StyleInputstringDOTTEDpercentile9StyleInput
Show DashboardboolfalseshowDashboardInput
PositionstringTOP_RIGHTdashboardPositionInput
SizestringNORMALdashboardSizeInput
Show GridbooltruegridInput
SizestringNORMALgridSizeInput
bullishColorInputcolorcolor.new(GREEN,80)bullishColorInput
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.

Similar Pine Scripts

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

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

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill

[RS]Donchian Fans

by ricardosantos79
261 stars

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

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans

Snag - VWAP

by dearvn
257 stars

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

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - VWAP

Candlestick Patterns

by harryguiacorn
219 stars

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

Indicator v5 Candlestick patternsVolatility & bands
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns

Dynamic Linear Regression

by TradersPost
218 stars

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

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers