# Triple Exponential Moving Average (TEMA)

> QuantNexus indicator page for the TEMA low-lag trend line.

**Route**: `/quantnexus/indicators/tema/`

## What It Does

TEMA is an even more responsive smoothing line than DEMA. It is designed to reduce lag while still filtering noise.

## Formula

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

## Parameters

- `period` - default `30`
- `_movav` - default `EMA`

## C++23 API

```cpp
#include <nonabt/indicators/tema.hpp>
auto tema = std::make_unique<nonabt::TEMA>(data().close(), 30, "EMA");
```

## Common Usage

- Use TEMA for trend following with reduced lag.
- Works well when you want quicker turn detection than EMA.
- Often paired with a slow confirmation line to avoid whipsaws.

## Practical Pattern

Treat TEMA as the active signal line and use a slower average as the regime confirmation line.
