Table of Contents

Class TripleExponentialMovingAverage

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

This indicator computes the Triple Exponential Moving Average (TEMA). The Triple Exponential Moving Average is calculated with the following formula: EMA1 = EMA(t,period) EMA2 = EMA(EMA(t,period),period) EMA3 = EMA(EMA(EMA(t,period),period),period) TEMA = 3 * EMA1 - 3 * EMA2 + EMA3

public class TripleExponentialMovingAverage : IndicatorBase, IIndicator, IUpdatable
Inheritance
TripleExponentialMovingAverage
Implements
Inherited Members
Extension Methods

Constructors

TripleExponentialMovingAverage(int)

Initializes a new instance of the TripleExponentialMovingAverage class using the specified period.

public TripleExponentialMovingAverage(int period)

Parameters

period int

The period of the TEMA

TripleExponentialMovingAverage(string, int)

Initializes a new instance of the TripleExponentialMovingAverage class using the specified name and period.

public TripleExponentialMovingAverage(string name, int period)

Parameters

name string

The name of this indicator

period int

The period of the TEMA

Properties

IsReady

Gets a flag indicating when this indicator is ready and fully initialized

public override bool IsReady { get; }

Property Value

bool

WarmUpPeriod

Required period, in data points, for the indicator to be ready and fully initialized.

public override int WarmUpPeriod { get; }

Property Value

int

Methods

Forward(long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(long time, DoubleArray input)

Parameters

time long
input DoubleArray

The input given to the indicator

Returns

DoubleArray

A new value for this indicator

Reset()

Resets this indicator to its initial state

public override void Reset()