Table of Contents

Class OnBalanceVolume

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

This indicator computes the On Balance Volume (OBV). The On Balance Volume is calculated by determining the price of the current close price and previous close price. If the current close price is equivalent to the previous price the OBV remains the same, If the current close price is higher the volume of that day is added to the OBV, while a lower close price will result in negative value.

public class OnBalanceVolume : TradeBarIndicator, IIndicator, IUpdatable
Inheritance
OnBalanceVolume
Implements
Inherited Members
Extension Methods

Constructors

OnBalanceVolume()

Initializes a new instance of the Indicator class using the specified name.

public OnBalanceVolume()

OnBalanceVolume(string)

Initializes a new instance of the Indicator class using the specified name.

public OnBalanceVolume(string name)

Parameters

name string

The name of this indicator

Properties

IsReady

Gets a flag indicating when this indicator is ready and fully initialized

public override bool IsReady { get; }

Property Value

bool

WarmUpPeriod

Required period, in data points, for the indicator to be ready and fully initialized.

public override int WarmUpPeriod { get; }

Property Value

int

Methods

Forward(long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(long time, DoubleArray input)

Parameters

time long
input DoubleArray

The input given to the indicator

Returns

DoubleArray

A new value for this indicator

Reset()

Resets this indicator to its initial state

public override void Reset()