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
[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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Displacement lookback (avg size)
int
5
dispLookback
Displacement factor
float
1.5
dispFactor
Use body size (true) or full range (false)
bool
true
useBodySize
Bar Color (displacement bars)
bool
true
colorDispBars
Color 0 (bull)
color
color.new(color.lime, 0)
bullBarCol
Color 1 (bear)
color
color.new(color.red, 0)
bearBarCol
Show displacement markers
bool
true
showDispMarks
Bullish displacement
color
color.new(color.lime, 0)
bullDispMarkC
Bearish displacement
color
color.new(color.red, 0)
bearDispMarkC
Structure break lookback
int
5
sbLookback
Require structure break?
bool
true
requireStructBr
Structure break uses
string
Close
structBreakType
Show all 40 settings
Setting
Type
Default
Variable
Show 3-candle FVGs
bool
true
showFvg
Extend FVGs right
bool
true
extendFvg
Extend length (bars)
int
250
extendBars
Hide mitigated FVGs
bool
false
hideMitigated
Max FVGs kept
int
60
maxFvgs
Bull FVG border
color
color.new(color.teal, 0)
bullFvgBorder
Bull FVG background
color
color.new(color.teal, 85)
bullFvgBg
Bear FVG border
color
color.new(color.red, 0)
bearFvgBorder
Bear FVG background
color
color.new(color.red, 85)
bearFvgBg
Show Reload Zones (from FVG)
bool
true
showSniper
Bull Reload border
color
color.new(color.orange, 0)
snBorderBull
Bull Reload background
color
color.new(color.orange, 85)
snBgBull
Bear Reload border
color
color.new(color.orange, 0)
snBorderBear
Bear Reload background
color
color.new(color.orange, 85)
snBgBear
Show Invalidation line
bool
true
showSnStop
Invalidation line color
color
color.new(color.gray, 0)
snStopCol
Invalidation line width
int
2
snStopWidth
Show Premium/Discount dealing range
bool
true
showDR
Dealing range lookback
int
50
drLen
DR High
bool
true
showDRHi
DR Low
bool
true
showDRLo
DR Mid 50%
bool
true
showDRMid
PD 62%
bool
false
showPD62
PD 38%
bool
false
showPD38
DR High color
color
color.new(color.gray, 0)
drHighCol
DR Low color
color
color.new(color.gray, 0)
drLowCol
DR Mid color
color
color.new(color.blue, 0)
drMidCol
PD 62% color
color
color.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.
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
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
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
The CISD with Fib/Range Extensions and Stats indicator tracks Change in State of Delivery (CISD) level breakouts on the price chart. It detects pullback structures filtered by ATR and volume conditions, then projects future target levels using customizable Fib
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
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