A smart money style indicator that detects swing structure and breaks of structure with an ATR buffer, then marks order blocks found within a lookback, extends them forward and hides or removes them when mitigated by a wick or a close.
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
Signals are graded in tiers using a location gate, a higher-timeframe filter, delta and relative volume thresholds and a cooldown. Optional trail bands and a trail line are drawn. It draws on the price chart.
Swing structure and break of structure
Order blocks with mitigation options
Tiered signals with location gate
Higher-timeframe filter and relative volume threshold
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing Pivot Length
int
5
swingLen
ATR Length
int
14
atrLen
BOS ATR Buffer
float
0.05
bosAtrBufMult
OB Search Bars
int
12
obLookback
Min OB Body %
float
0.25
obMinBodyPct
OB Forward Extension Bars
int
140
obForwardBars
Auto-Hide Far OBs
bool
true
obAutoHideFar
Max OB Distance (ATR)
float
12.0
obMaxDistanceAtr
OB Mitigation
string
Close through
mitigationMode
Require Location Gate
bool
true
useLocationGate
Location Tolerance (ATR)
float
0.40
locAtrMult
Enable B-Tier
bool
true
showB
Show all 40 settings
Setting
Type
Default
Variable
B-Tier Needs HTF
bool
true
bTierNeedsHTF
Use HTF Filter
bool
true
htfOn
Higher Timeframe
timeframe
W
htfTf
Delta Threshold
float
0.05
deltaThresh
RVOL Threshold
float
1.30
rvolThresh
Signal Cooldown
int
8
cooldownBars
Min ATR %
float
0.003
minAtrPct
Lower TF Activity Relaxation
float
0.20
ltfActivityMult
A+ Score Threshold
float
95
plusScore
Show Trail Bands
bool
true
showBands
Show Middle Trail Channel
bool
true
showMidChannel
Show Trail Line
bool
true
showTrailLine
Zone ATR Multiplier
float
1.05
zoneAtrMult
Stack Gap Multiplier
float
0.65
zoneGapMult
Lower TF Stack Gap Weight
float
0.15
ltfGapWeight
Max Stack Gap Used In Bands (ATR)
float
3.0
maxGapAtrMult
Trail Smoothing
int
8
trailSmooth
Width Smoothing
int
10
widthSmooth
Edge Smoothing
int
7
edgeSmooth
Middle Channel Width
float
0.30
channelWidth
Inner Zone Width
float
0.90
innerBandWidth
Outer Zone Width
float
1.70
outerBandWidth
Minimum Zone Floor (ATR)
float
0.70
minZoneFloor
Max Band Compression Per Bar
float
0.06
maxCompressStep
Lower TF Floor Boost
float
0.20
ltfFloorBoost
Swing Lines
bool
true
showSwingLines
Order Blocks
bool
true
showOBs
Fade Mitigated OBs
bool
true
fadeMitigated
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
This indicator combines Centered Triangular Moving Average (TMA) bands offset by Average True Range (ATR) with Smart Money Concepts (SMC) market structure analysis on the price chart. It calculates upper, center, and lower bands alongside swing and internal ma