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
[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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Chart Mode
string
Execution (5m-15m)
chartModeInput
Visual Density
string
Clean
visualDensityInput
Swing Detection Sensitivity
int
5
swingDetectionLenInput
Show Trend Continuation Breaks
bool
true
showTrendBreaksInput
Show Trend Reversal Breaks
bool
true
showReversalBreaksInput
Show Swing Point Labels
bool
false
showSwingLabelsInput
Structure Line Style
string
Dashed
structureLineStyleInput
Baseline Period
int
50
baselinePeriodInput
Volatility Measurement Period
int
14
volatilityPeriodInput
Volatility Smoothing
int
5
volatilitySmoothInput
Band Width Multiplier
float
2.0
bandWidthMultInput
Adaptive Baseline (Efficiency Ratio)
bool
false
useAdaptiveBaselineInput
Show all 40 settings
Setting
Type
Default
Variable
Adaptive Min Period
int
20
adaptiveMinInput
Adaptive Max Period
int
100
adaptiveMaxInput
Show Volatility Envelope
bool
true
showEnvelopeInput
Require Strong Break Candle
bool
false
requireMomentumInput
Volume Surge Threshold
float
1.0
momentumVolThreshInput
Minimum Body Ratio
float
0.5
momentumBodyRatioInput
Minimum Displacement (ATR)
float
0.75
momentumDisplacementInput
Checks Required (of 4)
int
2
momentumChecksInput
Min Bars Between Opposing Signals
int
0
antiWhipsawBarsInput
Show Confluence Score on Signals
bool
true
showConfluenceScoreInput
Minimum Score to Show Signal
int
2
minConfluenceScoreInput
Show RSI Divergence
bool
true
showDivergenceInput
RSI Period
int
14
rsiPeriodInput
Require Divergence for Signals
bool
false
requireDivergenceInput
Show Price Imbalances
bool
true
showImbalancesInput
Bullish Gap Color
color
color.new(#00bcd4, 85)
bullishGapColorInput
Bearish Gap Color
color
color.new(#e91e63, 85)
bearishGapColorInput
Fill Threshold
float
0.5
gapFillThresholdInput
Max Visible Gaps
int
10
maxVisibleGapsInput
Show Liquidity Levels
bool
true
showLiquidityInput
Show Sweep Events
bool
true
showSweepEventsInput
Equal Level Tolerance (ATR)
float
0.15
equalLevelToleranceInput
Level Lookback (bars)
int
50
equalLevelLookbackInput
Require Sweep for Signals
bool
false
requireSweepInput
Show Supply / Demand Zones
bool
true
showSupplyDemandInput
Demand Zone Color
color
color.new(#00bcd4, 80)
demandZoneColorInput
Supply Zone Color
color
color.new(#e91e63, 80)
supplyZoneColorInput
Max Visible Zones
int
5
maxVisibleZonesInput
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 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
This indicator overlays options gamma-exposure levels, session VWAP bands, and intraday market structure tools directly on the price chart. It provides three modular components: strike walls with standard deviation bands and opening ranges, a gamma regime engi
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
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
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%