Weighted Close Formula

The weighted close formula calculates the average value of daily prices, but gives more weight to the close price.

Formula Details

Syntax

Chart.DataManipulator.FinancialFormula(
    FinancialFormula.WeightedClose,
    "High,Low,Close",
    "WC")

Input Values

This formula takes three input Y values.

  • High
    Daily high price.

  • Low
    Daily low price.

  • Close
    Daily close price.

Output Value

This formula outputs one Y value.

  • WC
    Weighted close 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 values for high low, and close prices respectively (Series1:Y,Series1:Y2,Series1:Y4) and outputs the weighted close indicator on Series2 (Series2:Y).

Chart1.DataManipulator.FinancialFormula (FinancialFormula.WeightedClose, "Series1:Y,Series1:Y2,Series1:Y4", "Series2:Y")
Chart1.DataManipulator.FinancialFormula (FinancialFormula.WeightedClose, "Series1:Y,Series1:Y2,Series1:Y4", "Series2:Y");

See Also

Reference

Median Price Formula

Typical Price Formula

System.Windows.Forms.DataVisualization.Charting

System.Web.UI.DataVisualization.Charting

Concepts

Applying Formulas

Other Resources

Price Indicators