OPEN-SOURCE SCRIPT
Institutional Order Flow Map

WHAT IT DOES
Institutional Order Flow Map (IOFM) is a fully original Smart Money
Concepts indicator built in Pine Script v6. It detects and visualizes
where institutional players are actively placing orders by analyzing
three simultaneous data streams: abnormal volume activity, price
rejection behavior, and structural pivot zones.
The result is a clean, layered map of the market showing exactly where
large participants have been buying and selling, how strong each zone
is relative to others, and which direction the institutional order
flow is currently pointing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES IT ORIGINAL
Most SMC indicators detect Order Blocks using only price structure
(pivot highs and lows). IOFM adds two additional layers that are
not combined in any existing public indicator:
1. Institutional Footprint Detection
Each candle is evaluated for three conditions simultaneously:
volume exceeds the 20-bar SMA by a user-defined multiplier,
the rejection wick exceeds a minimum percentage of the total
candle range, and the candle closes in the direction of the
move. When all three align, the candle is marked as an
institutional footprint. A Volume Climax marker appears when
volume exceeds 1.5x the standard threshold, indicating extreme
institutional participation.
2. Order Density Score (0-100)
Every zone receives a weighted quality score calculated from
three independent components. Volume Score contributes up to
40 points based on how elevated volume was at the pivot.
Rejection Score contributes up to 30 points based on the
wick-to-range ratio at the pivot. Trend Alignment Score
contributes 30 points when the zone type agrees with the
EMA200 trend direction. Only zones above the minimum score
threshold are displayed, ensuring the chart shows only the
strongest institutional areas.
3. Flow Direction Engine
A signed cumulative delta is calculated for each bar as
(close - open) / range x volume. This measures whether buying
or selling pressure dominated each candle. The sum of this
delta over the calculation period is normalized to a -100
to +100 scale and displayed as a directional flow label.
This tells traders whether institutional money is currently
flowing into or out of the market, independent of price
direction alone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
Step 1 — Read the Footprint markers
Green upward arrows (▲) mark candles where institutions were
actively buying: high volume, strong lower wick, and bullish
close. Red downward arrows (▼) mark institutional selling.
The 🏛 BUY and 🏛 SELL labels appear on Volume Climax candles
where institutional activity was extreme. These are the highest
conviction footprint signals.
Step 2 — Identify the strongest zones
Green boxes are Buy Zones (demand areas) where institutional
buyers previously accumulated positions. Red boxes are Sell
Zones (supply areas) where institutional sellers distributed.
Each zone displays a score (for example B 78 or S 65).
Higher scores indicate stronger institutional interest at
that level. Only zones above the minimum score threshold
are shown to keep the chart clean.
Step 3 — Watch for mitigation
When price closes through a Buy Zone from above, the zone
fades to indicate it has been mitigated (consumed). When
price closes through a Sell Zone from below, the same
happens. Mitigated zones are no longer considered active
institutional areas and should be treated with lower
confidence.
Step 4 — Check Flow Direction
The Flow Direction label in the top-right of the chart
shows the current institutional bias: Buying, Selling,
or Neutral. This is based on the cumulative signed delta
calculation, not just price direction. Use this to confirm
whether the footprint markers and zone interactions are
backed by actual order flow.
Step 5 — Read the Dashboard
The top-right panel shows: Institutional Bias (Bullish
or Bearish based on zone strength comparison), Flow
Direction and Strength (0-100), Top Buy Zone score,
Top Sell Zone score, current Footprint reading, Volume
status, and count of active zones on each side.
Step 6 — Combine signals
The strongest setups occur when multiple elements align:
price returning to a high-score zone, a 🏛 footprint
marker on that candle, Flow Direction agreeing with
the zone type, and EMA200 trend in the same direction.
When all four align, the institutional evidence is
at its strongest.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CALCULATION LOGIC
Institutional Footprint conditions:
inst_vol = volume > SMA(volume, 20) x vol_multiplier
lower_rej = lower_wick / candle_range x 100
upper_rej = upper_wick / candle_range x 100
inst_buy = inst_vol AND lower_rej >= wick_threshold AND close > open
inst_sell = inst_vol AND upper_rej >= wick_threshold AND close < open
vol_climax = volume > SMA(volume, 20) x (vol_multiplier x 1.5)
Order Density Score:
vol_score = min(round(volume_at_pivot / SMA_volume x 25), 40)
rej_score = min(round(wick_pct x 0.4), 30)
trend_score = 30 if zone aligns with EMA200, else 10
total_score = min(vol_score + rej_score + trend_score, 100)
Flow Direction Engine:
bar_delta = (close - open) / candle_range x volume
flow_sum = SUM(bar_delta, period)
flow_max = HIGHEST(ABS(flow_sum), 50)
flow_norm = flow_sum / flow_max x 100
flow_bull = flow_norm > 10
flow_bear = flow_norm < -10
Zone mitigation:
Buy Zone mitigated when low <= zone_bottom
Sell Zone mitigated when high >= zone_top
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS OVERVIEW
Module A — Institutional Footprint:
Show Footprint candles — toggle markers on/off
Volume threshold (SMA x) — multiplier for institutional volume
Min rejection wick (%) — minimum wick size to qualify
Module B — Order Flow Zones:
Show Order Flow Zones — toggle zones on/off
Zone pivot lookback — bars used for pivot detection
Zone height (ATR x) — vertical size of each zone
Extend zones (bars) — how far right zones extend
Fade mitigated zones — toggle mitigation visual
Module C — Flow Direction:
Flow calculation period — bars for cumulative delta
Show Flow Direction label — toggle directional label
Module D — Order Density:
Show score on zones — toggle score labels
Min score to show — filter threshold (default 60)
Dashboard:
Show Dashboard — toggle info panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS INCLUDED
Institutional Buy footprint detected
Institutional Sell footprint detected
Volume Climax — extreme institutional activity
Strong Buy — flow direction and footprint aligned bullish
Strong Sell — flow direction and footprint aligned bearish
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPATIBILITY
Works on all assets — Crypto, Forex, Stocks, Futures, Indices.
Works on all timeframes.
Best results on 15m to 4H for active trading.
No repainting. All signals calculated on bar close.
No request.security() calls. No lookahead bias.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
This indicator is provided for educational and informational
purposes only. It does not constitute financial advice or a
recommendation to buy or sell any asset. The Order Density
Score and Flow Direction calculations are mathematical models
based on price and volume data and do not represent actual
order book information. Past institutional footprint patterns
do not guarantee future results. Always apply your own
analysis and use proper risk management before placing
any trade. The author is not responsible for any trading
losses incurred from use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Copy my strategy - copy.mytimebox.app/
TG ENG - t.me/+B_BEn6COneo2ZTBi
TG - t.me/+LTNPinehDNlkZTQy
TG ENG - t.me/+B_BEn6COneo2ZTBi
TG - t.me/+LTNPinehDNlkZTQy
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Copy my strategy - copy.mytimebox.app/
TG ENG - t.me/+B_BEn6COneo2ZTBi
TG - t.me/+LTNPinehDNlkZTQy
TG ENG - t.me/+B_BEn6COneo2ZTBi
TG - t.me/+LTNPinehDNlkZTQy
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.