Volume reference

All 6 volume in AlgoBarsX, each with its parameters, defaults, ranges and an example: vwap, obv, cmf, ad_line, pvt, volume_osc.

vwap obv cmf ad_line pvt volume_osc

vwap(anchor = "session", on = bars())→ series<price>#

Volume-weighted average price, restarting at each session or period.

Parameters

NameTypeDefaultWhat it is
anchorstring"session"Where the average restarts.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
fair = vwap(anchor: "session")
strategyindicatoralertlibrarysince 1.0

obv(on = bars())→ series<number>#

On-balance volume.

Parameters

NameTypeDefaultWhat it is
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
balance_volume = obv()
strategyindicatoralertlibrarysince 1.0

cmf(length = 20, on = bars())→ series<number>#

Chaikin money flow.

Parameters

NameTypeDefaultRangeWhat it is
lengthint201 to 5000Number of bars in the calculation.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
money_flow = cmf(20)
strategyindicatoralertlibrarysince 1.0

ad_line(on = bars())→ series<number>#

Accumulation/distribution line.

Parameters

NameTypeDefaultWhat it is
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
ad = ad_line()
strategyindicatoralertlibrarysince 1.0

pvt(on = bars())→ series<number>#

Price volume trend.

Parameters

NameTypeDefaultWhat it is
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
trend_volume = pvt()
strategyindicatoralertlibrarysince 1.0

volume_osc(fast = 5, slow = 10, on = bars())→ series<number>#

Volume oscillator.

Parameters

NameTypeDefaultRangeWhat it is
fastint51 to 5000Fast length.
slowint101 to 5000Slow length.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
vo = volume_osc(5, 10)
strategyindicatoralertlibrarysince 1.0

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account