On Balance Volume Formula

The on balance volume formula measures positive and negative volume flows.

Chart.DataManipulator.FinancialFormula(
    FinancialFormula.OnBalanceVolume,
    "Close,Volume",
    "OBV")

This formula takes two input Y values.

Close

Daily close price.

Volume

Daily volume.

This formula outputs one Y value.

OBV

On balance volume indicator.

The Line chart type is a convenient chart type to display the formula output.

The following example takes input from Series1's Y value for daily close prices (Series1:Y4) and Series2's Y value for daily volume, and then outputs the on balance volume indicator on Series3 (Series3:Y).

Chart1.DataManipulator.FinancialFormula (FinancialFormula.OnBalanceVolume, "Series1:Y4,Series2:Y", "Series3:Y");
Show: