Liquidity Absorption Heatmap
- Indicateurs
-
Margarita Florencia Del Aguila
Welcome to AIPID. I am 54 years old, married, and have two children. I am an engineer, and for nearly 20 years, trading has been my hell and is my passion.
WHY HAS IT BEEN MY HELL? - Version: 1.0
Liquidity Absorption Heatmap (FREE, 100% free, unrestricted) is a strictly non-repainting MetaTrader 5 chart indicator engineered for FX, metals, and indices where centralized exchange Depth of Market (DOM) history does not exist.
Why This Indicator Is Different From Typical MT5 Heatmaps
Most retail heatmap indicators repaint swing zones using future candles, blow up minor noise to 100 on quiet days, or lag charts with hundreds of rectangle objects. This tool is built around five measurable engineering differences:
- Zero Lookahead (0.0 diff vs +25pp to +34pp fake edge): Standard non-causal heatmaps peek at future bars to draw swings and liquidity walls, inflating apparent rebound rates by +25.44pp to +34.46pp in historical tests (for example, +31.73pp lookahead mirage on EURUSD H1 vs +1.06pp causal). Here, every zone is computed strictly from closed bars prior to the evaluated bar ( shift >= 1 , zero future-bar leakage).
- Built-In Live Causal Self-Audit HUD (no blind faith): Rather than assuming bright bands cause reversals, it runs a live closed-bar first-touch test across recent history ( InpAuditBars=400 , horizon InpAuditHorizon=6 , symmetric +/- 0.50 ATR barrier) comparing Hot Zones ( Heat >= 70 ) against Cold Zones ( Heat <= 30 ). It displays N, rebound rates, percentage-point lift, two-proportion Z-score, p-value, and an honest label ( EDGE DETECTED , LOW SAMPLE , or NEUTRAL / NO EDGE ).
- Scale-Invariant P5-P95 Normalization: Each layer is normalized independently between its 5th and 95th percentiles instead of naive min/max scaling. Single news spikes do not fade normal liquidity zones, and flat or constant-volume feeds are excluded cleanly without divide-by-zero errors or artificial bands (verified 1.78e-11 invariance under a 10x price/volume factor).
- Four Microstructure Layers on One CCanvas Bitmap: Combines Wick Absorption, Volume-at-Price (with optional 24-bar CopyTicksRange 80/20 refinement under a 15 ms CPU cap on live overlays), Confirmed Swing Clusters ( N=3 closed bars each side), and ATR-Scaled Round Levels onto a single lightweight ARGB bitmap with zero chart-object clutter.
- Six Closed-Bar iCustom Buffers for Expert Advisors: Most market heatmaps are visual-only overlays. This indicator exports 6 deterministic buffers ready for automated strategies and Optimization Passes while leaving Bar 0 at EMPTY_VALUE .
Four Causal Microstructure Layers
- Wick Absorption (default weight 0.35): Measures upper and lower rejection tails weighted by relative volume and exponential recency decay ( InpDecayHalfLife=100 ).
- Volume-at-Price (default weight 0.30): Distributes real volume (when provided) or tick volume across each closed candle over InpLookbackBars=200 across InpPriceBins=64 price levels. Historical iCustom buffers and Self-Audit use uniform closed-bar OHLC and volume so Strategy Tester and live runs stay consistent.
- Confirmed Swing Clusters (default weight 0.25): Projects Gaussian density only around swing highs and lows already confirmed by InpSwingStrength=3 closed bars on both sides.
- Auto-Scaled Round Levels (default weight 0.10): Soft institutional magnet scaled dynamically to ATR(14) and symbol point size.
Rendering, Multi-Timeframe, and Alerts
- Display & Palettes: Right Profile Strip, Full Background, or Hybrid overlay on a single CCanvas bitmap, 4 built-in palettes (Thermal, Ocean, Slate, Viridis), and a collapsible compact HUD.
- Causal Multi-Timeframe (MTF): Higher-timeframe bars ( InpSourceTF ) enter calculation only after their full closing timestamp.
- Edge-Triggered Alerts: Configurable Hot Zone alerts ( InpAlertOnHotZone=false default, InpHotThreshold=70.0 , InpAlertCooldownMin=15 ) supporting popup, mobile push, and email.
iCustom Buffers (Closed Bars Only, shift >= 1)
Bar 0 remains EMPTY_VALUE so Expert Advisors never read incomplete intrabar estimates:
- Buffer 0: HeatAtClose (0 to 100 composite heat at bar close)
- Buffer 1: POCPrice (Point of Control bin price)
- Buffer 2: UpperZonePrice (strongest upper zone above prior close)
- Buffer 3: UpperZoneStrength (0 to 100)
- Buffer 4: LowerZonePrice (strongest lower zone below prior close)
- Buffer 5: LowerZoneStrength (0 to 100)
Platform & Security Notice (Zero-DLL)
- Requires MetaTrader 5 Build 5900 or newer on live charts. Real-tick refinement depends on tick history provided by your broker and falls back automatically to closed-bar OHLC and volume if unavailable.
- 100% pure MQL5 with zero external DLLs and zero WebRequest calls. Download exclusively through MQL5 Market; unofficial copies bundled with patched libraries such as msimg32.dll or version.dll are unauthorized and should be treated as malware risk.
