Skip to content

Documentation / @finchart/indicators / vr

Function: vr() ​

vr(source, options?): Vr

Defined in: indicators/src/factories.ts:2142

Volume Ratio (VR) — ((up + flat/2) × 100) / (down + flat/2), the window's volume on up-closes plus half its flat volume against its volume on down-closes plus half the flat, the ×100 applied before the division; and an sma of that as its signal. Up, down and flat are against the previous close. A bar without volume, or the first bar (no previous close), is no observation and nulls every window that holds it — the MFI rule. A window with no down volume and no flat volume has no denominator — null, where the canonical writes 0.

Parameters ​

source ​

Source<OHLC>

options? ​

VrOptions = {}

Returns ​

Vr