Skip to content

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 ​

InputTypeDefault
Row sizeint24
Value area volume (%)int70
Placementselect"right"
Show POCbooltrue
Up volumecolor"rgba(41,98,255,0.3)"
Down volumecolor"rgba(251,192,45,0.3)"
Value area upcolor"rgba(41,98,255,0.65)"
Value area downcolor"rgba(251,192,45,0.65)"
POC colorcolor"#FF5252"
Width (% of chart)int30

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 });

AlphaScript language v0.1 · runtime 0.2.0