Cumulative Volume Delta (CVD)
Sub-window histogram showing the buy minus sell volume difference accumulated over a set period
Separate window
Histogram of the price levels with the most activity, built from candles and tick volume
Open source, Apache License 2.0, by EarnForex.com. See licences
First release on this site.
The GreenYellow histogram bars extending to the left of the vertical line show each price range. A longer bar means more candles passed through that range or more tick volume built up there. The red horizontal line is the Point of Control (POC), the level with the highest volume in the calculated window, which runs back from the vertical line by the number of units you set. People commonly look at the POC and the ranges with long bars as levels where price has spent a lot of time.
Set UnitsToScan and UnitType to cover the range you want, for example 5 days. Adjust StepPointsExt to suit the symbol, since 10 points is only the default; very fine bins create many chart objects. With UseVolume off it counts candles instead of weighting by volume. In the default mode the vertical line sits at the latest bar and the profile is recalculated on every new bar and every RefreshDelay seconds, so it changes with the forming bar. Use StartTimeType = manual to drag the vertical line yourself.
If you put several copies on one chart, give each a different IndicatorName. The data is the broker's tick volume, not real market volume. The width of the histogram is adjustable with WindowSize and depends on the chart zoom level. Use it alongside other analysis.
| Name | Default | Description |
|---|---|---|
| IndicatorName | MQLTA-VPI1 | Short name of the indicator and prefix of its chart objects. It must be unique if you place several on one chart. |
| VPTimeFrame | PERIOD_CURRENT | Timeframe on which the profile is calculated (PERIOD_CURRENT = chart timeframe). |
| CalculationMode | CANDLE_WHOLE | Candle value used for the calculation: whole candle (high-low), open price, or close price. |
| UseVolume | true | Weight by tick volume. If off, it only counts the candles passing through each price bin. |
| StepPointsExt | 10 | Width of each price bin, in points. |
| StartTimeType | CALC_START_LAST | End of the calculation window: the latest candle (the line follows new candles) or manual (you drag the vertical line). |
| UnitsToScan | 5 | Number of time units to look back for the calculation. |
| UnitType | CALC_TF_DAYS | Unit of UnitsToScan: minutes, hours, days or weeks. |
| WindowSize | 1 | Width multiplier of the histogram. |
| WindowColor | clrGreenYellow | Colour of the histogram and the vertical line. |
| ShowLineLabel | true | Show a text label beside the vertical line. |
| LineLabelColor | clrRed | Colour of the vertical line label. |
| CleanLineAtClose | true | Listed as an input but not used by the code; the vertical line is always deleted when the indicator is removed from the chart. |
| RefreshDelay | 10 | Interval in seconds at which the profile is recalculated in latest-candle mode. |
| ShowPOC | true | Show the Point of Control line (the busiest level). |
| POCSize | 2 | Width of the POC line (1 to 5). |
| POCColor | clrRed | Colour of the POC line. |
Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.
Volume Profile draws a horizontal histogram on the price chart showing which price ranges had the most candles passing through or the most accumulated tick volume. Prices are split into bins of StepPointsExt points, and each bin counts candles or is weighted by tick volume depending on UseVolume. The busiest level is the Point of Control (POC), drawn as a horizontal line.
The calculation window runs backwards from a vertical line for the chosen number of units (UnitsToScan in minutes, hours, days or weeks). In the default mode the vertical line sits at the latest candle and the profile is recalculated on each new candle and every RefreshDelay seconds. In manual mode you can drag the vertical line to any point, and you can stack several copies with different IndicatorName values to view several ranges.
It can calculate from the full high-low range of each candle or from the open or close only, and on a timeframe separate from the chart. It is an analysis aid and does not open trades.
Banners from the Exness partner programme

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.
Sub-window histogram showing the buy minus sell volume difference accumulated over a set period
Separate window
See where price spent the most time in each session
Main chartHas alerts