Indicator · Pine Script v5 · On the chart

Imbalance Detector [LuxAlgo]

by mrdungx2603· code credited to LuxAlgo

This indicator marks price imbalances on the chart as boxes.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code386
Settings24inputs
LicenceNone stated
Last update4 months ago28 Jun 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

Imbalance Detector [LuxAlgo] can show fair value gaps, opening gaps, and volume imbalances, each with separate bullish and bearish colors. Optional minimum-width filters accept points, a percentage, or ATR, and each type can be extended a set number of bars. An optional dashboard can list detections at a chosen corner and text size. It draws on the price chart and does not generate trades or exits.

Details

Published by

mrdungx2603 on GitHub

Code credit

LuxAlgo, as written in the script's header

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Volume, Screeners & dashboards

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
Fair Value Gaps (FVG)booltrueshow_fvg
bull_fvg_csscolor#2157f3bull_fvg_css
bear_fvg_csscolor#ff1100bear_fvg_css
Min Widthboolfalsefvg_usewidth
fvg_gapwidthfloat0fvg_gapwidth
fvg_methodstringPointsfvg_method
Extend FVGint0fvg_extend
Show Opening Gaps (OG)booltrueshow_og
bull_og_csscolor#2157f3bull_og_css
bear_og_csscolor#ff1100bear_og_css
Min Widthboolfalseog_usewidth
og_gapwidthfloat0og_gapwidth
Show all 24 settings
SettingTypeDefaultVariable
og_methodstringPointsog_method
Extend OGint0og_extend
Show Volume Imbalances (VI)booltrueshow_vi
bull_vi_csscolor#2157f3bull_vi_css
bear_vi_csscolor#ff1100bear_vi_css
Min Widthboolfalsevi_usewidth
vi_gapwidthfloat0vi_gapwidth
vi_methodstringPointsvi_method
Extend VIint5vi_extend
Show Dashboardboolfalseshow_dash
Dashboard LocationstringBottom Rightdash_loc
Dashboard SizestringTinytext_size
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

Nexural QWAP

by JasonTeixeira
9 stars

Nexural QWAP calculates a volume-weighted average price combined with a cumulative volume delta order flow engine directly on the main price chart. It analyzes market structure by detecting volume absorption, liquidity sweeps, price-CVD divergence, stacked imb

Indicator v6 SMC / ICT / price actionVolume
Updated 12 days ago · Custom licence GitHub repository of Nexural QWAP
9 stars

Smart Money Dashboard plots key Smart Money Concepts on the price chart, including Order Blocks with mitigation tracking, Fair Value Gaps, and Equal Highs or Lows sweeps. It analyzes Cumulative Volume Delta for divergence and combines multi-timeframe structure

Indicator v6 SMC / ICT / price actionVolume
Updated yesterday · MIT GitHub repository of Smart Money Dashboard

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator runs a CRT state engine on the price chart. It can analyze draw-on-liquidity pivots, a session state machine, and optional 1AM, 5AM, and 9AM CRT models. Optional modules track market structure, liquidity pools, volume-profile levels, and

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

SMC+WWAP+FVG+TBT

by IAMATOMIC001
3 stars

This overlay indicator maps market structure and a volume-weighted average on the price chart. It plots bullish and bearish structure from a pivot period, with an optional response length for shorter or longer structure. Premium and discount areas can be shade

Indicator v6 SMC / ICT / price actionVolume Repaints
Updated 12 months ago · None stated GitHub repository of SMC+WWAP+FVG+TBT

OWS Context

by vishnu-vardhan-d
2 stars

This indicator evaluates institutional market structure by tracking five core behaviors: liquidity sweeps with reclaims, stopping volume, range compression and expansion, breaks of structure, and order block mitigations. When a user-defined minimum number of p

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of OWS Context

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