Volume Profile

Published on MillionChart by Quantix.

A volume profile built on arrays that shows how volume is distributed across price levels over a recent lookback window. It is based on the "Poor man's volume profile" script by IldarAkhmetgaleev, with several changes.

Changes from the original:
- Calculations are stored and processed with arrays.
- Bar labels are replaced with lines.
- A Point of Control (POC) line has been added.
- Bars now grow from right to left.
- You can change the bar width.

Inputs:
- Volume lookback depth (10 to 1000): the number of bars used for the volume calculations.
- Bar length multiplier (10 to 100): makes the profile bars longer or shorter.
- Bar horizontal offset (0 to 100): the distance from the current bar toward the right.
- Bar width (1 to 20): the thickness of the bars.
- Show POC line: shows or hides the POC line.