Share via


Price Volume Trend Formula (Chart Controls)

The price volume trend formula calculates a cumulative volume total using relative changes of the close price. A bullish divergence between the price volume trend indicator and the price indicates that the market is at the bottom. A bearish divergence between the price volume trend indicator and the price indicates that the market is at the top.

Sampel plot of the price volume trend indicator

Formula Details

Syntax

Chart.DataManipulator.FinancialFormula(
    FinancialFormula.PriceVolumeTrend,
    "Close,Volume",
    "PVT")

Input Values

This formula takes two input Y values.

  • Close
    Daily close price.
  • Volume
    Daily volume.

Output Value

This formula outputs one Y value.

  • PVT
    Price volume trend indicator.

Remarks

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

Example

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

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

See Also

Reference

System.Windows.Forms.DataVisualization.Charting
System.Web.UI.DataVisualization.Charting

Concepts

Financial Formulas
Applying Formulas