TEMA - Triple Moving Averages (50,100,200)
Jan 25, 2018

The TEMA - Triple Moving Averages (50, 100, 200) indicator plots three essential moving averages within a single script to help traders identify trend direction and potential support or resistance levels while optimizing chart space.
Usage
The Usage section describes how the script can be used to analyze market trends. This tool is primarily used to determine the prevailing trend across multiple time horizons by looking at the relationship between the price and the three moving average lines (50, 100, and 200 periods).
- Trend Identification: When the price is trading above all three moving averages, the market is generally considered to be in a bullish phase. Conversely, when the price is below them, the market is in a bearish phase.
- Dynamic Support and Resistance: The 50, 100, and 200-period averages often act as dynamic areas where price may find support during pullbacks or resistance during rallies.
- Crossover Analysis: The indicator includes built-in alert logic for crossovers between the 50/100 and 100/200 averages, which can signal shifts in medium-to-long-term momentum.
- Calculation Toggle: Users can switch between Exponential Moving Averages (EMA) for more responsiveness to recent price action or Simple Moving Averages (SMA) for a smoother, traditional calculation.
Details
This script consolidates three common moving average lengths (50, 100, and 200) into one calculation block. This is particularly useful for traders who want to monitor institutional-grade trend levels without exceeding indicator limits on their charting platform.
The logic uses the ta.ema() and ta.sma() functions to derive the values based on a user-defined toggle. The 50-period average represents intermediate momentum, the 100-period represents medium-term trend structure, and the 200-period represents the long-term "baseline" trend. Original code by hmborges.
Settings
- Exponential MA: When enabled, the indicator calculates Exponential Moving Averages. When disabled, it calculates Simple Moving Averages.
FAQ
Can I customize the lengths of the three moving averages? In this specific version, the lengths are fixed at 50, 100, and 200 to represent standard institutional benchmarks.
Does this indicator provide alerts? Yes, the indicator triggers alerts when the 50-period average crosses the 100-period average, and when the 100-period average crosses the 200-period average.
How do I access the TEMA - Triple Moving Averages (50, 100, 200)? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.