Triple Exponential Moving Average Formula

The triple exponential moving average formula is useful for eliminating short and insignificant cycles in the data. It smoothes the data three times using the Exponential Moving Average Formula, and then calculates the rate of change in the moving average based on the result for the previous day.

Formula Details

Syntax

Chart.DataManipulator.FinancialFormula(
    FinancialFormula.TripleExponentialMovingAverage,
    "Period",
    "Price",
    "TEMA")

Parameters

This formula takes one required parameter.

  • Period
    Period for calculating the exponential moving average for the triple exponential moving average indicator.

Input Values

This formula takes one input Y value.

  • Price
    Price for which the triple exponential moving average indicator is calculated.

Output Value

This formula outputs one Y value.

  • TEMA
    Triple exponential moving average.

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 outputs the triple exponential moving average indicator on Series3 (Series3:Y). It uses a period of 15 days for calculating the exponential moving averages.

Chart1.DataManipulator.FinancialFormula (FinancialFormula. TripleExponentialMovingAverage, "15", "Series1:Y4", "Series3:Y")
Chart1.DataManipulator.FinancialFormula (FinancialFormula. TripleExponentialMovingAverage, "15", "Series1:Y4", "Series3:Y");

See Also

Reference

System.Windows.Forms.DataVisualization.Charting

System.Web.UI.DataVisualization.Charting

Concepts

Applying Formulas

Financial Formulas

Other Resources

Moving Averages