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
SMC+OB+FVG_PH detects and visualizes market structure elements including change of character, break of structure, swing points, inducements, and liquidity sweeps. Additionally, it identifies order blocks with volumetric information and tracks retest events. Configurable settings adjust structure detection periods, candle break rules, line styles, and retest confirmation criteria. As an indicator rather than an execution strategy, it provides visual market structure signals without automated trade entries or exit rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
CHoCH Detection Period
int
14
ms_len
IDM Detection Period
int
3
ms_shortLen
Bullish Elements
color
#0da49acc
ms_bullCss
Bearish Elements
color
#ee485fcc
ms_bearCss
CHoCH
bool
true
ms_showChoch
BOS
bool
true
ms_showBos
Swings
bool
true
ms_showCircles
Inducements
bool
true
ms_showIdm
ms_idmCss
color
#9c9c9c9e
ms_idmCss
Sweeps
bool
true
ms_showSweeps
ms_sweepsCss
color
#9c9c9c93
ms_sweepsCss
Break with candle body
bool
true
isStructBodyCandleBreak
Show all 40 settings
Setting
Type
Default
Variable
BOS Style
string
─
bosLineStyleOption
BOS Width
int
1
bosLineWidth
CHoCH Style
string
─
chochLineStyleOption
CHoCH Width
int
1
chochLineWidth
Historic Zones
bool
false
ob_showInvalidated
Volumetric Info
bool
true
ob_orderBlockVolumetricInfo
Hervorhebung bei Retest
bool
true
ob_highlightRetest
Rahmenstärke bei Retest
int
1
ob_retestBorderWidth
Retest Verzögerung (Kerzen)
int
4
ob_retestDelay
Erst Ausbruch abwarten
bool
true
ob_waitForZoneExit
Retest Methode
string
Close
ob_retestMethod
Retest Rahmen Bull
color
#ffd900cc
ob_retestBullBorderColor
Retest Rahmen Bear
color
#9c9c9ccc
ob_retestBearBorderColor
Retest Hintergrund Bull
color
#ffd70019
ob_retestBullBgColor
Retest Hintergrund Bear
color
#9c9c9c19
ob_retestBearBgColor
Rahmenstil bei Retest
string
╌
ob_retestLineStyleOption
Retest Label anzeigen
bool
false
ob_showRetestLabel
Text erst bei Retest anzeigen
bool
false
ob_hideTextUntilRetest
Test-Count anzeigen
bool
true
ob_showTestCount
Highlight Test-Count ab
int
3
ob_testCountHighlightThreshold
Highlight Farbe
color
#0da49acc
ob_testCountHighlightColor
Zone Invalidation
string
Close
ob_obEndMethod
Swing Length
int
10
ob_swingLength
Bullish
color
#ffd70080
ob_bullOrderBlockColor
Bearish
color
#9c9c9c80
ob_bearOrderBlockColor
Text Color
color
#ffffffb3
ob_textColor
Max. Orderblocks pro Richtung
int
20
input_maxOrderBlocks
Combine Zones
bool
false
ob_combineOBs
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 script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu
This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR
This indicator identifies dynamic support and resistance levels using pivot highs and lows. It plots resistance and support lines directly on the price chart once pivot points are confirmed. Additionally, it calculates a volume oscillator using 9-period and 26
SMC + POC Signals identifies Smart Money Concepts structure elements including Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, and Fair Value Gaps alongside a rolling Point of Control (POC) volume profile line. It marks potential long and
This indicator identifies bullish Change of Character (CHoCH) structure shifts directly on the price chart using pivot swing points. It tracks swing highs and lows governed by configurable left and right lengths and maximum swing age. The script highlights CHo
The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur