# Triple Exponential Moving Average (TEMA)

#### <mark style="color:orange;">Description</mark>

TEMA, Triple Exponential Moving Average is used to smooth out price data and reduce the lag that is inherent in other moving averages. It's similar to DEMA but uses a more complex formula to achieve a further smoothed average.

Calculate TEMA, first calculate the EMA of the price data over three different time periods. The TEMA is then calculated by taking the three EMAs and applying the formula for the DEMA to each of them then summing the results.&#x20;

The formula:

TEMA = 3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))

TEMA is used to identify trends, if the price is above the TEMA, it may indicate an uptrend, while if the price is below the TEMA, it may indicate a downtrend. It's important to use the TEMA in combination with our other tools to make informed decisions.

{% embed url="<https://www.youtube.com/watch?index=28&list=PLog30vtb4ZA76-tBWML69sR_RuKNn1kaB&v=xTT5t6gqvbE>" %}

#### <mark style="color:orange;">End Point</mark>

#### <mark style="color:orange;">Example</mark>

<mark style="color:orange;">**Use Cases:**</mark>

## [Click here for a Free API key](https://www.cryptoquote.io/register) then [**Test the API yourself!**](https://www.cryptoquote.io/api_doc?code=ta_tema\&page=api_analytics)&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cryptoquote.gitbook.io/cryptoquote/apis/analytics-apis/technical-analysis/triple-exponential-moving-average-tema.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
