1Copy the scriptPress Copy script above, or the copy button on the code below.
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
309 lines of Pine Script v5 from indicators/institutional_orderflow.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.
Bullish and bearish order-block boxes require a strong candle, volume above a multiple of a 20-bar average, and a later rally or drop. Fair value gaps are boxed when they exceed a percentage size and can be extended. Liquidity sweeps use a lookback and minimum wick size. Swing length controls break-of-structure and change-of-character labels. Zone and box counts are capped, and order blocks are checked every five bars.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Order Blocks
bool
true
show_ob
Order Block Lookback
int
20
ob_lookback
Min Volume Multiplier
float
1.5
ob_min_volume
Max Order Block Zones
int
10
max_ob_zones
Show Fair Value Gaps
bool
true
show_fvg
FVG Min Size %
float
0.3
fvg_threshold
Extend FVG Boxes
bool
true
extend_fvg
Max FVG Boxes
int
20
max_fvg
Show Liquidity Sweeps
bool
true
show_liquidity
Liquidity Lookback
int
50
liquidity_lookback
Wick Size %
float
0.5
wick_threshold
Show BOS/CHoCH
bool
true
show_structure
Show all 18 settings
Setting
Type
Default
Variable
Swing Detection Length
int
5
swing_length
Show Structure Labels
bool
true
structure_labels
Bullish Order Block
color
color.new(color.green, 85)
ob_bull_color
Bearish Order Block
color
color.new(color.red, 85)
ob_bear_color
Bullish FVG
color
color.new(color.aqua, 80)
fvg_bull_color
Bearish FVG
color
color.new(color.orange, 80)
fvg_bear_color
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.
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
Calculates higher-timeframe volume profiles to identify Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) levels directly on the price chart. It flags potential reversal setups and Change in State of Delivery (CISD) patterns relative to v
Copilot is an order flow range-reversal indicator designed to overlay trading setups directly on the price chart. It evaluates four criteria: market context (sideways vs trending regime based on ATR height), structure (double top or double bottom retests), abs
Supply and Demand Visible Range identifies supply, demand, and equilibrium zones across the visible chart range. It accumulates high, low, and volume data starting from the leftmost visible bar, optionally requesting lower timeframe intrabar data for finer res
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 identifies and visualizes key support and resistance heatmap zones directly on the price chart. Using closed one-hour price data, it evaluates multi-scale pivots, liquidity clusters, relative volume, and round-number resonances to score structur