Detrended Price Oscillator Formula

The detrended price oscillator formula calculates the difference between the daily price and the moving average. This is useful for identifying cycles and overbought and oversold price levels.

Formula Details

Syntax

Chart.DataManipulator.FinancialFormula(
    FinancialFormula.DetrendedPriceOscillator,
    "Period",
    "Price",
    "DPOI")

Parameters

This formula takes one required parameter.

  • Period
    Period for calculating the moving average for the detrended price oscillator index.

Input Values

This formula takes one input Y value.

  • Price
    Price for which the detrended price oscillator index is calculated.

Output Value

This formula outputs one Y value.

  • DPOI
    Detrended price oscillator index.

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 the daily close price (Series1:Y4), and outputs the detrended price oscillator on Series2 (Series2:Y). It uses a period of 15 days for calculating the moving average.

Chart1.DataManipulator.FinancialFormula (FinancialFormula.DetrendedPriceOscillator, "10", "Series1:Y4", "Series2:Y")
Chart1.DataManipulator.FinancialFormula (FinancialFormula.DetrendedPriceOscillator, "10", "Series1:Y4", "Series2:Y");

See Also

Reference

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

Concepts

Financial Formulas
Applying Formulas

Build Date:

2012-08-02