Indicator · Pine Script v6 · On the chart

[CT] Displacement FVG Toolkit

by eddiebelaval

This indicator identifies market displacement, structure breaks, and Fair Value Gaps (FVGs) directly on the main price chart.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code819
Settings40inputs
LicenceNone stated
Last update3 months ago24 Jul 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

[CT] Displacement FVG Toolkit highlights displacement candles using an average range lookback and multiplier factor, with optional structure break filtering using close or wick prices. It draws extended FVG boxes, customizable reload zones with invalidation lines, and premium/discount dealing ranges. Main settings allow users to adjust displacement parameters, structure break filters, maximum displayed zones, and mitigation visibility. It visualizes liquidity imbalances without issuing automated strategy orders.

Details

Published by

eddiebelaval on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Candlestick patterns, 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
Displacement lookback (avg size)int5dispLookback
Displacement factorfloat1.5dispFactor
Use body size (true) or full range (false)booltrueuseBodySize
Bar Color (displacement bars)booltruecolorDispBars
Color 0 (bull)colorcolor.new(color.lime, 0)bullBarCol
Color 1 (bear)colorcolor.new(color.red, 0)bearBarCol
Show displacement markersbooltrueshowDispMarks
Bullish displacementcolorcolor.new(color.lime, 0)bullDispMarkC
Bearish displacementcolorcolor.new(color.red, 0)bearDispMarkC
Structure break lookbackint5sbLookback
Require structure break?booltruerequireStructBr
Structure break usesstringClosestructBreakType
Show all 40 settings
SettingTypeDefaultVariable
Show 3-candle FVGsbooltrueshowFvg
Extend FVGs rightbooltrueextendFvg
Extend length (bars)int250extendBars
Hide mitigated FVGsboolfalsehideMitigated
Max FVGs keptint60maxFvgs
Bull FVG bordercolorcolor.new(color.teal, 0)bullFvgBorder
Bull FVG backgroundcolorcolor.new(color.teal, 85)bullFvgBg
Bear FVG bordercolorcolor.new(color.red, 0)bearFvgBorder
Bear FVG backgroundcolorcolor.new(color.red, 85)bearFvgBg
Show Reload Zones (from FVG)booltrueshowSniper
Bull Reload bordercolorcolor.new(color.orange, 0)snBorderBull
Bull Reload backgroundcolorcolor.new(color.orange, 85)snBgBull
Bear Reload bordercolorcolor.new(color.orange, 0)snBorderBear
Bear Reload backgroundcolorcolor.new(color.orange, 85)snBgBear
Show Invalidation linebooltrueshowSnStop
Invalidation line colorcolorcolor.new(color.gray, 0)snStopCol
Invalidation line widthint2snStopWidth
Show Premium/Discount dealing rangebooltrueshowDR
Dealing range lookbackint50drLen
DR HighbooltrueshowDRHi
DR LowbooltrueshowDRLo
DR Mid 50%booltrueshowDRMid
PD 62%boolfalseshowPD62
PD 38%boolfalseshowPD38
DR High colorcolorcolor.new(color.gray, 0)drHighCol
DR Low colorcolorcolor.new(color.gray, 0)drLowCol
DR Mid colorcolorcolor.new(color.blue, 0)drMidCol
PD 62% colorcolorcolor.new(CT_PINK, 0)pd62Col
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

219 stars

This indicator identifies High Of Low Price (HOLP) and Low Of High Price (LOHP) candlestick setups based on price extremes over a specified lookback period. A HOLP signal triggers when the current bar closes above the high of a recent session low, whereas a LO

Indicator v5 Candlestick patternsBreakout
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns - HOLP-LOHP

This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure with Inducements & Sweeps [LuxAlgo]

This Pine Script indicator identifies liquidity sweeps and confirms signals using a close-back candle pattern directly on the price chart. It tracks recent swing highs and lows over a customizable lookback period. A bullish signal forms when a prior bar sweeps

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Liquidity Sweep + Close-Back Confirmation
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 10 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B
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

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