Triple exponential moving average
Exponential average with most of its lag removed.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| tema | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- 3 * period - 3 bars (39 at the defaults)
- Repaints
- No
- Parity
- MetaTrader 5, within 1e-12
Formula
TEMA = 3 * EMA(x) - 3 * EMA(EMA(x)) + EMA(EMA(EMA(x)))
Each average starts at the bar where the one before it is defined. After a gap the whole calculation starts again.