Sidechair

footprint.vah()

Browse the reference

The value area high of a footprint bar: the top row of the area holding the chosen share of the bar's volume.

Try it in the editor

footprint.vah(fp) returns the volume_row at the upper edge of the value area. The value area is the band of rows around the point of control that holds the percentage of volume you set with va_percent in request.footprint().

Called as a method, fp.vah() is the same call. Together with footprint.val() it brackets where most of the bar's trading happened.

Syntax

Pine Script
footprint.vah(id: footprint) -> volume_row
footprint.vah() -> volume_row

Arguments

NameTypeDefaultDescription
idfootprintrequiredThe footprint to read, from request.footprint(). In method form, such as fp.delta() or row.delta(), the object before the dot supplies this value.

Returns

volume_row: The row at the top of the value area.

Remarks

  • On Sidechair: not supported yet; the call warns "footprint.vah() isn't supported yet; that part shows nothing." and returns na. request.footprint() also returns na, so a script that guards with na() runs and shows only its other output.

Example

Pine ScriptValue area high row volumeOpen in editor
//@version=6
indicator("Value area high row volume")
fp = request.footprint(10, 70)
value = na(fp) ? na : volume_row.total_volume(footprint.vah(fp))
plot(close, "Close", color.gray)
plot(value, "VAH row volume", color.orange, 2)

See also

Not on Sidechair yet