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
Market Structure + Supply/Demand 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 create demand and supply boxes that expire or gray out after tests. Long and short signals appear when a zone retest meets a minimum risk-to-reward ratio, with plotted entry, stop, and target lines. Settings control zone count, retest rules, colors, alerts, and an optional dashboard. Unconfirmed swings can change while confirmation bars remain at zero.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Length
int
5
pivotLength
Confirmation Bars
int
0
confirmBars
Show Unvalidated Swings
bool
true
showUnvalidated
Consolidation Bars
int
3
consolidationBars
Consolidation ATR Multiplier
float
0.5
consolidationThreshold
Impulse ATR Multiplier
float
1.5
impulseThreshold
ATR Length
int
14
atrLength
Maximum Active Zones
int
10
maxZones
Zone Expiry Bars
int
100
zoneExpiry
Allow Multiple Retests
bool
true
allowRetest
First Touch Only
bool
false
firstTouchOnly
Minimum R:R Ratio
float
2.5
minRR
Show all 32 settings
Setting
Type
Default
Variable
Stop Loss Buffer %
float
0.1
stopLossBuffer
Validated High
color
color.red
colorValidatedHigh
Validated Low
color
color.green
colorValidatedLow
Unvalidated High
color
color.new(color.red, 60)
colorUnvalidatedHigh
Unvalidated Low
color
color.new(color.green, 60)
colorUnvalidatedLow
Demand Zone
color
color.new(color.green, 85)
colorDemandZone
Supply Zone
color
color.new(color.red, 85)
colorSupplyZone
Tested Zone
color
color.new(color.gray, 90)
colorTestedZone
Long Signal
color
color.green
colorLongSignal
Short Signal
color
color.red
colorShortSignal
Entry Line
color
color.blue
colorEntryLine
Stop Loss
color
color.red
colorStopLine
Take Profit
color
color.green
colorTargetLine
Show Dashboard
bool
true
showDashboard
Dashboard Position
string
top_right
dashPosition
Show Trend Background
bool
false
showTrendBG
Background Transparency
int
95
bgTransparency
Long Entry Alert
bool
true
alertOnLong
Short Entry Alert
bool
true
alertOnShort
Trend Change Alert
bool
false
alertOnTrendChange
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 scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an
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 indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r
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
Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi
This indicator plots average daily range levels on the price chart, together with optional standard-deviation and Fibonacci levels scaled from that range. Users set the lookback in days, a scale factor, and the visibility, color, and line style of the ADR line