Appearance
Visible Range Volume Profile
Volume at each price over the bars on screen, with value area and POC.
Kind indicator · Drawn on the price pane
Try it
On the chart, press / and choose Visible Range Volume Profile under Volume. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Row size | int | 24 |
| Value area volume (%) | int | 70 |
| Placement | select | "right" |
| Show POC | bool | true |
| Up volume | color | "rgba(41,98,255,0.3)" |
| Down volume | color | "rgba(251,192,45,0.3)" |
| Value area up | color | "rgba(41,98,255,0.65)" |
| Value area down | color | "rgba(251,192,45,0.65)" |
| POC color | color | "#FF5252" |
| Width (% of chart) | int | 30 |
Source
From packages/alphascript/indicators/vrvp.as.js.
js
indicator({ name: "Visible Range Volume Profile", shortTitle: "VRVP", overlay: true });
const rows = input.int("Row size", 24, { min: 1, max: 500 });
const valueArea = input.int("Value area volume (%)", 70, { min: 0, max: 100 });
const placement = input.select("Placement", "right", ["right", "left"]);
const showPoc = input.bool("Show POC", true);
const upColor = input.color("Up volume", "rgba(41,98,255,0.3)", { group: "Style" }), downColor = input.color("Down volume", "rgba(251,192,45,0.3)", { group: "Style" });
const vaUpColor = input.color("Value area up", "rgba(41,98,255,0.65)", { group: "Style" }), vaDownColor = input.color("Value area down", "rgba(251,192,45,0.65)", { group: "Style" });
const pocColor = input.color("POC color", "#FF5252", { group: "Style" });
const width = input.int("Width (% of chart)", 30, { min: 1, max: 100 });
plotVolumeProfile({ title: "Volume Profile", range: "visible", rows, valueArea, placement, showPoc, upColor, downColor, vaUpColor, vaDownColor, pocColor, widthPercent: width });