OnBalanceVolume


Summary

On Balance Volume measures buying and selling pressure as a cumulative indicator that adds volume on up days and subtracts volume on down days.

Syntax

public interface OnBalanceVolume

Members

NameTypeSummary
Result PropertyThe time series of OnBalanceVolume Indicator

Example 1

private OnBalanceVolume _onBalanceVolume;
[Parameter]
public DataSeries Source { get; set; }
[Output("Main")]
public IndicatorDataSeries Result { get; set; }
protected override void Initialize()
{
   _onBalanceVolume = Indicators.OnBalanceVolume(Source);
}
public override void Calculate(int index)
{
   // Display Result of Indicator
   Result[index] = _onBalanceVolume.Result[index];
}