Triple Exponential Moving Average (TEMA) indicator
factor.formula
The first level exponential moving average (EMA1) calculation formula:
The second level exponential moving average (EMA2) calculation formula:
The third level exponential moving average (EMA3) calculation formula:
Triple Exponential Moving Average (TEMA) calculation formula:
in:
- :
The time period parameter, usually a positive integer, indicates the length of the time window used to calculate the moving average. For example, N=5 means using the data of the past 5 time units for calculation. This parameter determines the sensitivity of the indicator to price changes. Smaller N values are more sensitive to recent price changes, but may generate more noise; larger N values have better smoothing effects, but the response to price changes is relatively lagging. The commonly used default value is 5, but it can be adjusted according to the trading strategy and asset volatility.
- :
The input sequence value at time t is usually the price sequence of an asset (such as the closing price: CLOSE(t)), or other time series data (such as trading volume: VOL(t)). Here, time t can be understood as a trading time point, trading day, or other time unit, depending on the data frequency.
- :
The first-level exponential moving average represents the value of the input sequence $REAL(t)$ after exponential smoothing at time t.
- :
The second layer of exponential moving average represents the value after exponential smoothing of $EMA_1(t)$ at time t.
- :
The third layer of exponential moving average represents the value after exponential smoothing of $EMA_2(t)$ at time t.
- :
The exponential moving average function means that the time series x is exponentially smoothed using the time period N and the result sequence is returned. Its calculation formula is: $EMA(x,N)t = \alpha * x_t + (1 - \alpha) * EMA(x,N){t-1} $, where $ \alpha = \frac{2}{N + 1} $. The initial value $EMA(x,N)_0$ is usually the first value of x or the simple average of the first N values.
factor.explanation
The Triple Exponential Moving Average (TEMA) indicator performs exponential smoothing on the raw data three times and uses a weighted average method to reduce the lag of the moving average. Compared with single and double exponential moving averages, TEMA is more sensitive in capturing short-term trend reversals and can issue trading signals earlier. However, it should be noted that due to its sensitivity, TEMA may generate more noise and lead to misjudgment. Therefore, in practical applications, it is recommended to be used in combination with other technical indicators to improve the reliability of trading signals. In addition, the parameter N of TEMA also needs to be adjusted according to the specific situation to achieve the best effect. TEMA is mainly used in short-term trading strategies, such as intraday trading or swing trading. The key is to identify the acceleration and deceleration of the trend to assist in judging the timing of buying and selling.