Attachments forums

Re: Market Profile Indicators for MT5

Pelle, Tue Dec 01, 2026 4:27 am

Note!
The Pine Script code has been ported to the MT5 platform with the help of AI.[/

Hi all,

I ported "Footprint Liquidity Map" by EdgeTools from TradingView to MT5. Original script and description:
https://www.tradingview.com/script/MagE ... idity-Map/

WHAT IT DOES
Order book heatmaps show resting limit orders, but MT5 has no level 2 history for most symbols. This indicator estimates where liquidity was resting from the volume footprint instead. The idea comes from Cont, Kukanov and Stoikov (2014): price impact is roughly inversely proportional to market depth. Where a lot of volume traded and price barely moved, something absorbed that volume.

HOW IT WORKS
1. Footprint: the volume of each lower timeframe bar is spread over the price rows of its range. It counts as buy volume if the bar closed up and sell volume if it closed down. The lower timeframe is picked automatically (about 1/40 of the chart, e.g. M30 on D1, M1 on H1). There is also a real tick mode for exchange symbols.
2. Weight: price impact per bar is I = (|close - previous close| + tick) / sqrt(volume), compared with its running mean. Much volume with a small move gets a weight of up to 4x.
3. Memory: every price row keeps its weighted volume, fading with a half-life of 30 bars (adjustable).

WHAT YOU SEE
- Field: the memory summed into 15 price bands around price, shaded behind the candles
- Levels: up to 5 of the strongest rows as glowing lines, coloured from blue to red by strength against the average row
- Bubbles: the footprint VWAP of each bar, sized by volume against its average and coloured green or red by delta. Neighbouring bars are merged when you zoom out. Hover over a bubble to see volume, ratio, delta and VWAP.
- COB and SVP columns to the right of price: estimated liquidity and traded volume (split into buy and sell) per price, with the POC marked
- Dashboard: price position against the POC, strongest level, nearest levels above and below, and the weight, volume and delta of the last bar
- Alerts on bar close: price crossing the POC up or down, a bar trading through the strongest level, unusual volume, and a bar without footprint data
- 9 colour themes, including a Bookmap-style one

NOTES
- Forex and CFD symbols use tick volume when no real volume is available.
- On M1 charts the bar-based footprint is coarse, so use the tick mode there.
- Closed bars are not repainted. The live bar updates on every tick; switch off "Include Live Bar" if you only want closed bars. A reload (timeframe change, new history) recalculates everything, so older levels can look slightly different afterwards.
- The indicator turns on chart shift so the columns fit on the right, and restores your chart settings when you remove it.
- This is an estimate from traded volume, not order book data, and not a trading signal.

LICENCE
The original is published under the Mozilla Public License 2.0. This port is shared under the same licence, with the full source attached.

Feedback is welcome, especially on which lower timeframe works best for your symbols.



All files in topic