---
id: "T:cAlgo.API.Indicators.TripleExponentialMovingAverage"
kind: "interface"
namespace: "cAlgo.API.Indicators"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/TripleExponentialMovingAverage/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# TripleExponentialMovingAverage (interface)

The Triple Exponential Moving Average (TEMA) is a technical indicator that provides a smoothed representation of price data by applying three levels of exponential smoothing

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface TripleExponentialMovingAverage
```

## Examples

C#:

```csharp
private TripleExponentialMovingAverage _tema;

protected override void OnStart()
{
    _tema = Indicators.TripleExponentialMovingAverage(Bars.ClosePrices, 21);
}

protected override void OnBar()
{
    if (Bars.ClosePrices.Last(1) > _tema.Result.Last(1))
        Print("Close is above TEMA: {0}", _tema.Result.Last(1));
}
```

Python:

```python
def on_start(self):
    self.tema = api.Indicators.TripleExponentialMovingAverage(api.Bars.ClosePrices, 21)

def on_bar(self):
    if api.Bars.ClosePrices.Last(1) > self.tema.Result.Last(1):
        api.Print(f"Close is above TEMA: {self.tema.Result.Last(1)}")
```

## Inherited members

- `IndicatorDataSeries Result {get;}` (from MovingAverage) [details](https://help.ctrader.com/ctrader-algo/references/Indicators/MovingAverage/Result/index.md)
- `ChartIndicator AddToChart()` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/AddToChart/index.md)
- `Symbol Symbol {get;}` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/Symbol/index.md)
- `TimeFrame TimeFrame {get;}` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/TimeFrame/index.md)
- `Bars Bars {get;}` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/Bars/index.md)

