Volume Profile Per Candle

VolumeProfilePerCandle v4.4

This is a comprehensive per-candle volume profile / footprint chart indicator for MetaTrader 5, rendered entirely via a canvas overlay (CCanvas). It's a single-file, zero-buffer indicator that draws directly onto the chart window using pixel-level graphics. Here's a complete breakdown:

Core Concept

For every visible candle, the indicator divides the bar's price range into configurable price levels (up to 50) and counts how much trading activity occurred at each level — either from actual tick data, tick volume, or real volume. It then visualizes this "time-at-price" distribution as a heatmap, footprint, or other visual style directly on the chart.

Major Feature Groups

1. Heatmap Rendering (Primary Visual)

The indicator offers 8 display modes for visualizing per-bar volume distribution:

  • Filled — solid colored rectangles per price level, color-mapped by intensity
  • Gradient — smooth vertical gradient blending within each cell (uses a 4-band approximation for performance)
  • Bars — horizontal bars where width represents intensity
  • Dots — dot-matrix pattern, density proportional to activity
  • Footprint (Bid×Ask) — classic footprint text showing bid and ask volume per level
  • Delta — colored rectangles showing net buy/sell imbalance per level
  • Total Volume — volume per level with delta-based coloring
  • Combined — heatmap intensity background + footprint text overlay

There are 9 color themes: Thermal (blue→red), Magma (black→yellow), Ocean, Forest, Plasma (purple→gold), Inferno, Grayscale, Neon (cyan→magenta), and Custom (user-defined 3-color gradient). A 256-entry color lookup table is pre-built each frame for performance.

2. Volume Data Sources

Three sources are supported:

  • Tick volume — standard MT5 tick volume, distributed across levels using a weighted model (body gets more weight than wicks, center of body gets most)
  • Real volume — exchange-reported volume where available
  • Actual tick data — the most accurate mode. Uses CopyTicksRange() to get real tick-by-tick data, classifies each tick as buy or sell using tick flags first, then a Lee-Ready algorithm fallback (comparing last price to bid/ask, then to previous tick direction). This populates true bid/ask volume per level.

3. POC (Point of Control) & Value Area

  • POC — the price level with the highest volume/activity within each bar. When real tick data is available, POC is based on actual traded volume ( totalVol[] ); otherwise it uses tick counts. Four visual styles: solid line, dashed line, arrow marker, diamond marker.
  • POC Extension — POC lines can extend rightward beyond the candle, with extension length proportional to the combined heatmap intensity at that price. Uses a thermal gradient that fades out. The extension multiplier is configurable (1×–10×).
  • Value Area — the price zone containing a configurable percentage (default 70%) of total volume, computed by expanding outward from the POC. Drawn as a semi-transparent fill with boundary lines (VAH/VAL).

4. High/Low Volume Nodes

  • HVN — levels exceeding a threshold percentage of the bar's max activity get a colored border highlight (default: 80% threshold, lime border)
  • LVN — levels below a threshold get a different highlight (default: 20% threshold, red border)

5. Order Block Detection (Smart Money Concepts)

A sophisticated hot-zone detection system that identifies institutional order blocks:

Detection method:

  • Scans the last N bars (configurable lookback, default 100)
  • Builds a bucketed price density map — divides the full price range into tolerance-width buckets and counts how many times price visited each bucket
  • Identifies "hot zones" where density exceeds a configurable percentage of the maximum density
  • Uses a top-N insertion sort to keep only the strongest MAX_OB (30) candidates
  • Checks for overlapping zones and deduplicates

Enhanced scoring (1–10 strength score):

  • Impulse detection (0–3 points) — looks for strong directional candles after the OB, scored relative to ATR (2× ATR = 3 pts, 1× = 2 pts, 0.3× = 1 pt)
  • Liquidity sweep (0–2 points) — checks if price swept previous swing highs/lows before forming the OB
  • Fair Value Gap (0–2 points) — detects FVGs adjacent to the OB (gap between bar[i] low and bar[i+2] high for bullish, ATR-relative minimum gap size)
  • Volume confirmation (0–1 point) — OB bar volume vs. 10-bar average (1.2× threshold)
  • Intensity (0–1 point) — density relative to max (>0.6 = 1 pt)
  • Bar count (0–1 point) — 2–8 bars in the zone scores a point

Mitigation tracking:

  • Tracks whether price has re-entered the zone, how deep (mitigationPct 0–100%)
  • 50% penetration = mitigated; full through = 100% mitigated
  • Breaker block detection — when price fully breaks through an OB, it flips to a breaker
  • Retest counting with per-bar deduplication
  • Mitigation state persists across rebuilds via a save/restore mechanism

Filtering:

  • Minimum touches, minimum volume, minimum strength score
  • Maximum range in pips or as ATR multiplier
  • OBs can extend forward (configurable bars)

Visual rendering:

  • Filled rectangles with opacity adjusted by strength (strong = brighter, mitigated = faded)
  • Dashed POC line within the zone
  • Labels showing type, bar count, strength score, and status (BREAKER/MIT %)
  • Small indicators for FVG, LIQ (liquidity sweep), IMP (impulse pips)
  • Strength bar on the right edge (color-coded: red→orange→yellow by score)
  • Intensity bar at bottom

6. Swing Arcs

Connects consecutive swing segments with smooth curves weighted by volume intensity:

  • Divides the visible range into segments of configurable period (default 8 bars)
  • For each segment, collects the POC price (or bar midpoint) at each bar as control points
  • Draws a Hermite-interpolated smooth curve through these points
  • Adds a parabolic arc offset based on whether the swing is bullish or bearish
  • Control point dots are drawn at each bar's intensity peak
  • Three line styles: smooth, dashed, dotted
  • Optional fill between the arc and a baseline
  • Color-coded: bullish = DeepSkyBlue, bearish = Magenta

7. Sub-Bar Intensity Profile

Draws a histogram alongside each candle showing the volume distribution:

  • Can appear on the right, left, or both sides of the candle
  • Bar width proportional to intensity at each level
  • Color intensity also scales with volume
  • Optional volume text labels
  • Configurable max width and opacity

8. Footprint & Imbalance Analysis

When using footprint display modes:

  • Bid×Ask — shows "BidVol × AskVol" at each level
  • Delta only — shows signed delta (+/-)
  • Volume (Delta) — shows "TotalVol (+Delta)"
  • All — shows "Bid × Ask [+Delta]"

Imbalance detection:

  • Compares ask volume at level N vs bid volume at level N-1 (buy imbalance)
  • Compares bid volume at level N vs ask volume at level N+1 (sell imbalance)
  • Configurable ratio threshold (default 1.0 = 100%)
  • Highlighted with colored backgrounds and borders

9. Combined Price Heatmap

An aggregate heatmap spanning the full visible range (not per-candle):

  • Sums volume from all cached bars (configurable lookback, default 200) into a single profile with 200 price levels
  • Drawn as a full-width overlay behind per-bar visuals
  • Shows where cumulative volume concentration exists across the visible chart
  • Also used for POC extension intensity lookup

10. Higher Timeframe (HTF) Confirmation Panel

Analyzes two higher timeframes simultaneously:

  • Auto-selection — automatically picks the next timeframe up (e.g., M15→H1, H1→H4, H4→D1)
  • Builds a volume profile on the HTF using the last N bars
  • Computes HTF POC, VAH, VAL
  • Determines trend direction: BULL/BEAR/NEUTRAL based on close vs. moving average, candle direction, and price vs. POC
  • Displays a panel in the top-right corner with trend, POC price, position relative to POC (Above/Below), and VA levels

11. Zoom System

Two independent zoom axes:

  • Vertical (PgUp/PgDn) — price zoom, each level narrows the visible price range by 15% (0.85^level), up to 20 levels. Uses CHART_SCALEFIX to lock the price range.
  • Horizontal (+/-) — first uses MT5's built-in chart scale (0–5), then adds an "extra zoom" (2×–8×) where every Nth bar is skipped and the remaining bars are drawn wider to fill the space.

12. Y-Axis Calibration

A notable technical detail: the indicator uses ChartTimePriceToXY() to calibrate the actual pixel range of the chart's price area (which is smaller than CHART_HEIGHT_IN_PIXELS due to toolbars/scrollbars). This ensures heatmap cells align precisely with candlesticks.

Performance Architecture

  • Hash-based cache — 4096-slot hash table with linear probing and tombstone deletion for O(1) bar data lookup (replaces O(n) linear scan)
  • Circular eviction — when cache is full (1200 entries), the oldest entry is overwritten via a circular write index
  • Bar X position cache — per-frame cache of up to 2000 bar pixel positions to avoid repeated ChartTimePriceToXY calls
  • Color LUT — 256-entry pre-built color lookup table eliminates per-cell floating-point color math
  • Pre-computed ARGB — all fixed colors computed once per frame
  • Visible-range culling — both bar loop and per-bar level loop skip off-screen elements
  • Throttled redraws — configurable minimum milliseconds between redraws (default 100ms) prevents redraw storms during scrolling
  • Tick subsampling — when tick count exceeds the configured max (default 5000), ticks are sampled at even intervals with counts scaled by the step size

Event Handling

  • OnCalculate — main tick handler, detects new bars, triggers heavy computations (OB/Arc detection, HTF analysis) only on new bars
  • OnChartEvent — handles CHARTEVENT_CHART_CHANGE (scroll/zoom), mouse hover for tooltips, and keyboard for zoom controls. Calls RenderFrame() directly for immediate responsiveness.
  • OnTimer — millisecond timer that catches scroll changes (mouse drag/wheel) that don't always trigger OnChartEvent, by polling chart state and comparing to previous values

RenderFrame() is fully self-contained — it reads chart state fresh and uses iTime/iHigh/iLow/iClose/iVolume instead of OnCalculate's array parameters, so it can be called from any event handler.

Configuration Summary

The indicator has ~80 input parameters organized into groups: Heatmap, Custom Colors, POC/Value Area, HVN/LVN, Order Blocks (~20 params), Swing Arcs, Sub-Bar Profile, Labels, HTF Confirmation, Chart Appearance, Footprint, Imbalance, Combined Heatmap, and Performance. It's designed to be a single all-in-one volume analysis tool that replaces multiple separate indicators.

Altri dall’autore
Phantom Flow
Mahmoud Ahmed Abdou Ali
5 (1)
This indicator is a hybrid SMC + Trend + Oscillator tool that draws market-structure objects on the chart and also plots trend shift lines + arrows and a colored oscillator histogram. It includes these modules: Phantom Shift (ATR trend shift / trailing bands) Swing Structure (BOS/CHoCH + swing points) Internal Structure (iBOS/iCHoCH) Order Blocks (swing + internal) Equal Highs / Equal Lows (EQH / EQL) Fair Value Gaps (FVG) Premium / Discount zones (range zones) Phantom Oscillator (MA
FREE
Institutional QQE Oscillator (IQO) Description The Institutional QQE Oscillator (IQO) is a "momentum volatility" filter. Unlike a standard RSI which is jagged and noisy, the QQE uses a smoothing technique and a "Volatility Stop" mechanism (the yellow dotted line) on the RSI itself. Blue Line (Fast): The Smoothed RSI momentum. Yellow Dotted Line (Slow): The Volatility Threshold. Signal: When the Blue line crosses the Yellow line, it indicates a shift in true momentum, filtering out fake-outs. How
FREE
Supply and Demand X
Mahmoud Ahmed Abdou Ali
Supply and demand in trading describes how buyer (demand) and seller (supply) actions set asset prices, with high demand/low supply raising prices (premium) and low demand/high supply lowering them (discount); traders identify these imbalances as "zones" on charts (e.g., Rally-Base-Rally for demand, Drop-Base-Drop for supply) to find potential entry/exit points, aiming to buy at discount demand zones and sell at premium supply zones, using volume and price action to confirm institutional acti
FREE
Candle Color RSI
Mahmoud Ahmed Abdou Ali
Candle color RSI (Relative Strength Index) indicators change candlestick colors on the price chart to visually show RSI conditions like overbought/oversold levels or bullish/bearish momentum, using colors like red for overbought/bearish and green for oversold/bullish, helping traders spot reversals or strength at a glance without looking at the separate RSI pane. These custom indicators often color candles red above 70 (overbought), green below 30 (oversold), and keep default colors in between
FREE
Gann Square of Nine
Mahmoud Ahmed Abdou Ali
Here is the full technical and strategic description for the Gann Square of 9 indicator. Full Name Gann Square of 9 - Intraday Levels (v2.0) Overview This is a mathematical Support & Resistance indicator based on W.D. Gann's "Square of 9" theory. Unlike moving averages which lag behind price, this indicator is predictive . It calculates static price levels at the very beginning of the trading day (based on the Daily Open) and projects them forward. These levels act as a "road map" for the day,
FREE
Description The Institutional Cycle Filter (ICF) is a sophisticated trend-following tool that replaces standard moving averages with a "Signal Dot" system. It is designed to minimize lag while maintaining smoothness, making it highly effective for identifying trend reversals in volatile markets like Gold. How It Works (The Logic) Cosine Weighting: Unlike a Simple Moving Average (SMA) or Exponential Moving Average (EMA), this algorithm uses a Cosine function to calculate weights. This allows the
FREE
Here is the full professional description for your indicator, rebranded as Institutional Trend Candles (ITC) . You can use this text for your Market documentation, user manual, or simply to understand exactly how your tool functions. Institutional Trend Candles (ITC) v1.0 Overview Institutional Trend Candles (ITC) is a specialized trend-following system designed to filter out "retail noise" and visualize the true directional flow of the market. Built specifically for high-volatility assets like
FREE
MM Ultimate Pro Analyzer v10.0 - USER GUIDEBASIC USAGEStep 1: Add to Chart Open any chart in MetaTrader 5 Go to Navigator → Indicators Find MM Ultimate Pro Analyzer Drag it onto your chart A settings window will appear Step 2: Configure for Your Timeframe Choose settings based on what you trade: Timeframe NumberOfCandles VolumeAveragePeriod M1-M5 (Scalping) 10-20 50 M15-M30 (Day Trading) 5-10 30 H1-H4 (Swing Trading) 3-7 20 D1+ (Position Trading) 3-5 14 Step 3: Understand the Button Bar At the t
Accurate Signal Pro
Mahmoud Ahmed Abdou Ali
3 (2)
Accurate Signal ARC is a non-repainting trend & reversal signal indicator designed for MT4 . It uses ATR-weighted volatility logic combined with adaptive price channels to detect high-probability BUY and SELL points directly on the chart. How It Works Calculates a dynamic volatility channel using weighted ATR Detects trend direction (river state) and switches only when price decisively breaks the channel Filters noise using spread-aware true range Draws clear arrows : Lime Arrow → BUY si
FREE
MA Ribbon
Mahmoud Ahmed Abdou Ali
The MA ribbon is not a single indicator but rather an overlay of multiple moving averages (typically four to eight or more) of varying lengths plotted on the same price chart.  Visual Appearance: The resulting lines create a flowing, ribbon-like pattern across the price chart. Components: Traders can use different types of moving averages, such as Simple Moving Averages (SMA) or Exponential Moving Averages (EMA), and adjust the time periods (e.g., 10, 20, 30, 40, 50, and 60 periods) to suit t
FREE
The best eveR
Mahmoud Ahmed Abdou Ali
Indicator Name: "The Range Master" Core Purpose The Range Master is an advanced, multi-timeframe technical indicator designed to identify market consolidation (sideways ranging) and subsequent high-momentum breakout opportunities. It helps traders visually confirm when price action transitions from low-volatility accumulation to high-volatility trend initiation. ️ Functional Description (What it Does) The Range Master performs three primary, interconnected functions: Range Mapping , Breakout
FREE
Dema macd zone Divergence
Mahmoud Ahmed Abdou Ali
Indicator: The DEMA MACD Zone Divergence This is a powerful, multi-timeframe trend-following indicator based on the Moving Average Convergence Divergence (MACD) , but enhanced using Double Exponential Moving Averages (DEMA) for reduced lag. Its main function is to paint the background of the price chart with color-coded rectangular zones, clearly signaling the current momentum phase and potential shifts in market control (bullish or bearish). Core Purpose To visually map the strength and phas
FREE
Footprint MT5
Mahmoud Ahmed Abdou Ali
Footprint charts in MetaTrader 5 (MT5) provide traders with a detailed view of market activity, allowing for better analysis of price movements and trading decisions. What is a Footprint Chart? A footprint chart is a specialized visualization tool that displays market data beyond traditional candlestick or bar charts. It reveals how volume was distributed at each price level within a specific time frame, often segmented by bid and ask activity. This level of detail helps traders understand the
Trading Simulator X
Mahmoud Ahmed Abdou Ali
TradePanel Pro Indicator Testing & Trading Simulator Core Purpose (Clear & Honest) TradePanel Pro is a manual trading simulator designed to test indicators, signals, and strategies in real market conditions — without relying on automated logic. You see the signal → you click → you evaluate the result . What TradePanel Pro Is (Correct Positioning) Manual BUY / SELL execution panel Layered entries (multi-order testing) Real-time TP / SL behavior Trailing stop simulation Profit /
Edge loophole detector
Mahmoud Ahmed Abdou Ali
Quantitative Session Breakout Profiler & Data Miner Executive Summary: The "London Hunter v18.0" is not merely a buy/sell signal indicator; it is a statistical data mining engine . Its core idea is that market openings (London, NY, Asia) are not random, but distinct "micro-regimes." By measuring the specific "physics" of price movement (speed, pullback, candle size) during these opening windows, the system identifies which specific conditions lead to successful breakouts and which lead to fakeou
Institutional Physics Engine (IPE) v4.20 Market Structure, Liquidity & Valuation Diagnostic System WHAT THIS TOOL IS Institutional Physics Engine (IPE) is a real-time market diagnostics indicator that analyzes price using behavioral physics, liquidity response, supply & demand pressure, and equilibrium valuation. It does not predict price and does not generate blind buy/sell signals. Instead, it answers three professional trading questions: Where is fair value right now? Who is in con
Universal Strategy Validator: Turn Any Indicator into a Backtested Strategy Headline: Stop guessing if an indicator works. See the win rate, profit factor, and drawdown instantly—without writing a single line of code. Overview: The Universal Strategy Validator (USV) is a powerful analytical engine that connects to any MetaTrader 5 indicator. It reads the signal buffers (arrows, lines, or histograms) and runs a real-time simulation across historical data. It applies professional-grade filtering,
Candle Density Boxes
Mahmoud Ahmed Abdou Ali
Candle Density Boxes Indicator  Summary The Candle Density Boxes (CDB) indicator is an algorithmic tool that identifies price zones where candles cluster with high frequency. Through empirical analysis, we demonstrate that these zones exhibit statistically significant mean-reversion properties, with return frequencies ranging from 76–80% across multiple instruments. Key Findings: Zones with 6+ candle touches show 90%+ return probability Rank-based hierarchy provides clear reliability classifica
Summary (What Changed & Why It Matters) Traditional FVG indicators suffer from three structural flaws : Detection and mitigation are coupled Wicks and bodies are treated identically Partial mitigation is not preserved This indicator introduces a new FVG model where: Detection ≠ Mitigation Wick interaction ≠ Body acceptance FVGs decay progressively , not instantly This transforms FVGs from a static drawing tool into a dynamic price-acceptance model .
Matrix Oscillator
Mahmoud Ahmed Abdou Ali
MATRIX OSCILLATOR - Summary Guide WHAT IS IT? A multi-component oscillator that combines: Smart Money Flow (MFI-based histogram) Net Score (Trend strength from -100 to +100) Signal Line (Crossover reference) Confluence Zones (Confirmation areas) PhiSmoother Technology (Advanced noise filtering) STRONG BUY SIGNALS Component Condition Confluence Green zone filled (top) Money Flow Green bars above zero MFI Threshold MFI above green threshold line Net Score
3D Intensity Balls with Volume Boost Indicator v1.4 A sophisticated MetaTrader 5 custom indicator that visualizes price-level trading intensity using dynamically-sized, photorealistic 3D spheres rendered on the chart canvas, enhanced with volume-based scaling and advanced visual effects. Core Functionality Price Distribution Analysis: Divides each candle's price range into configurable levels (default: 50) Samples tick data to measure time-at-price (price dwell intensity) Visualizes concentra
All Symbols monitoring
Mahmoud Ahmed Abdou Ali
# All Trading Symbols Monitoring ## Version 9.43 | MT5 Indicator (Dual Mode) > An advanced multi-symbol trading monitor that watches all available broker symbols simultaneously, detects breakout opportunities, scores signal quality, and manages both paper and live trades - all displayed in a live on-chart dashboard. --- ## What This Tool Does - [ All Trading Symbols Monitoring ]( #all-trading-symbols-monitoring )   - [ Version 9.43 | MT5 Indicator (Dual Mode) ]( #version-943--mt5-indicator-
Lux Algo
Mahmoud Ahmed Abdou Ali
This system is a Self-Optimizing Algorithmic Framework . Unlike static indicators, it uses a Recursive Feedback Loop to "learn" the current market regime and adjust its sensitivity in real-time. Because it calculates every step based solely on current and past data, it is a Real-Time Model with no repainting, no bias, and no lookahead. How the "AI" Operates Performance-Based Learning: The system constantly "grades" its own accuracy. If the market is trending cleanly, it increases its sensitivit
Filtro:
Nessuna recensione
Rispondi alla recensione