TREND, MOVING AVERAGES & STRUCTURE

TEMA

An even quicker version of the double exponential average — about as responsive as a smoothed line gets before it starts chasing noise.

spec id: temalength (default 20)

What does TEMA measure?

An even quicker version of the double exponential average — about as responsive as a smoothed line gets before it starts chasing noise.

How is TEMA calculated?

Take an exponential average of the close, then one of that, then one of that again. Combine the three so the lag from each layer largely cancels: three times the first, minus three times the second, plus the third.

Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.

How do I use TEMA in a bot?

In the builder, add an indicator of type tema (parameters: length, default 20). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.

Related indicators

Or browse all 158 indicators in the full library.

Build a bot that trades on TEMA — the first backtest is free.

Run a free backtest