Indicator · Pine Script v6 · On the chart

[Viprasol] Institutional Structure Engine

by qtu11· code credited to Viprasol

This overlay indicator maps market structure on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code2,424
Settings40inputs
LicenceCustom licence
Last update2 months ago14 Aug 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

[Viprasol] Institutional Structure Engine marks confirmed swing points and draws continuation breaks and reversal breaks, with optional higher-high and lower-low labels. A baseline and volatility envelope can sit on price, and an optional adaptive period uses an efficiency ratio. Signals can require a strong break candle, a minimum confluence score, and RSI divergence. Chart mode and visual density change which timeframe context and how much detail is drawn. It does not place trades or manage exits.

Details

Published by

qtu11 on GitHub

Code credit

Viprasol, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Volatility & bands, Divergence

Markets

Gold

Timeframes

M1-M5, M15-H1, H4 and above

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
Chart ModestringExecution (5m-15m)chartModeInput
Visual DensitystringCleanvisualDensityInput
Swing Detection Sensitivityint5swingDetectionLenInput
Show Trend Continuation BreaksbooltrueshowTrendBreaksInput
Show Trend Reversal BreaksbooltrueshowReversalBreaksInput
Show Swing Point LabelsboolfalseshowSwingLabelsInput
Structure Line StylestringDashedstructureLineStyleInput
Baseline Periodint50baselinePeriodInput
Volatility Measurement Periodint14volatilityPeriodInput
Volatility Smoothingint5volatilitySmoothInput
Band Width Multiplierfloat2.0bandWidthMultInput
Adaptive Baseline (Efficiency Ratio)boolfalseuseAdaptiveBaselineInput
Show all 40 settings
SettingTypeDefaultVariable
Adaptive Min Periodint20adaptiveMinInput
Adaptive Max Periodint100adaptiveMaxInput
Show Volatility EnvelopebooltrueshowEnvelopeInput
Require Strong Break CandleboolfalserequireMomentumInput
Volume Surge Thresholdfloat1.0momentumVolThreshInput
Minimum Body Ratiofloat0.5momentumBodyRatioInput
Minimum Displacement (ATR)float0.75momentumDisplacementInput
Checks Required (of 4)int2momentumChecksInput
Min Bars Between Opposing Signalsint0antiWhipsawBarsInput
Show Confluence Score on SignalsbooltrueshowConfluenceScoreInput
Minimum Score to Show Signalint2minConfluenceScoreInput
Show RSI DivergencebooltrueshowDivergenceInput
RSI Periodint14rsiPeriodInput
Require Divergence for SignalsboolfalserequireDivergenceInput
Show Price ImbalancesbooltrueshowImbalancesInput
Bullish Gap Colorcolorcolor.new(#00bcd4, 85)bullishGapColorInput
Bearish Gap Colorcolorcolor.new(#e91e63, 85)bearishGapColorInput
Fill Thresholdfloat0.5gapFillThresholdInput
Max Visible Gapsint10maxVisibleGapsInput
Show Liquidity LevelsbooltrueshowLiquidityInput
Show Sweep EventsbooltrueshowSweepEventsInput
Equal Level Tolerance (ATR)float0.15equalLevelToleranceInput
Level Lookback (bars)int50equalLevelLookbackInput
Require Sweep for SignalsboolfalserequireSweepInput
Show Supply / Demand ZonesbooltrueshowSupplyDemandInput
Demand Zone Colorcolorcolor.new(#00bcd4, 80)demandZoneColorInput
Supply Zone Colorcolorcolor.new(#e91e63, 80)supplyZoneColorInput
Max Visible Zonesint5maxVisibleZonesInput
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
218 stars

This indicator maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Market Structure + Supply/Demand
55 stars

This Pine Script indicator overlays institutional liquidity levels on the price chart. It identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint pr

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Institutional Liquidity Grid

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

Bandz HTF

by samuelharting
18 stars

Bandz HTF projects higher-timeframe candle structures, ranges, and key levels directly onto the main price chart. It visualizes multiple configurable timeframe lanes from intraday to weekly alongside primary and macro range levels, including 25%, 50%, and 75%

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz HTF

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