Indicator · Pine Script v6 · On the chart

SMC+OB+FVG_PH

by mydcc· code credited to Patrick Heinze (FVG Integration)

This indicator plots smart money concept structures directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,641
Settings40inputs
LicenceCustom licence
Last updatetoday28 Oct 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

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.

Details

Published by

mydcc on GitHub

Code credit

Patrick Heinze (FVG Integration), as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Volume, Breakout

Markets

Any symbol

Timeframes

Any timeframe

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
CHoCH Detection Periodint14ms_len
IDM Detection Periodint3ms_shortLen
Bullish Elementscolor#0da49accms_bullCss
Bearish Elementscolor#ee485fccms_bearCss
CHoCHbooltruems_showChoch
BOSbooltruems_showBos
Swingsbooltruems_showCircles
Inducementsbooltruems_showIdm
ms_idmCsscolor#9c9c9c9ems_idmCss
Sweepsbooltruems_showSweeps
ms_sweepsCsscolor#9c9c9c93ms_sweepsCss
Break with candle bodybooltrueisStructBodyCandleBreak
Show all 40 settings
SettingTypeDefaultVariable
BOS Stylestring─bosLineStyleOption
BOS Widthint1bosLineWidth
CHoCH Stylestring─chochLineStyleOption
CHoCH Widthint1chochLineWidth
Historic Zonesboolfalseob_showInvalidated
Volumetric Infobooltrueob_orderBlockVolumetricInfo
Hervorhebung bei Retestbooltrueob_highlightRetest
Rahmenstärke bei Retestint1ob_retestBorderWidth
Retest Verzögerung (Kerzen)int4ob_retestDelay
Erst Ausbruch abwartenbooltrueob_waitForZoneExit
Retest MethodestringCloseob_retestMethod
Retest Rahmen Bullcolor#ffd900ccob_retestBullBorderColor
Retest Rahmen Bearcolor#9c9c9cccob_retestBearBorderColor
Retest Hintergrund Bullcolor#ffd70019ob_retestBullBgColor
Retest Hintergrund Bearcolor#9c9c9c19ob_retestBearBgColor
Rahmenstil bei Reteststring╌ob_retestLineStyleOption
Retest Label anzeigenboolfalseob_showRetestLabel
Text erst bei Retest anzeigenboolfalseob_hideTextUntilRetest
Test-Count anzeigenbooltrueob_showTestCount
Highlight Test-Count abint3ob_testCountHighlightThreshold
Highlight Farbecolor#0da49accob_testCountHighlightColor
Zone InvalidationstringCloseob_obEndMethod
Swing Lengthint10ob_swingLength
Bullishcolor#ffd70080ob_bullOrderBlockColor
Bearishcolor#9c9c9c80ob_bearOrderBlockColor
Text Colorcolor#ffffffb3ob_textColor
Max. Orderblocks pro Richtungint20input_maxOrderBlocks
Combine Zonesboolfalseob_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.

Similar Pine Scripts

13 stars

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

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume

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

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated yesterday · MIT GitHub repository of Modern Wyckoff State Machine Lite [WavesUnchained]

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

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 1 year ago · MPL-2.0 GitHub repository of Support & Resistance Levels with Break of Structure
2 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · None stated GitHub repository of SMC + POC Signals [factor-lab]
1 stars

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

Indicator v6 SMC / ICT / price actionBreakout
Updated 2 days ago · None stated GitHub repository of REV Ladder (Best Bullish CHoCH)

Moon Dev GEX Sweep & CVD

by moondevonyt
92 stars

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

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

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