Cleverio - Quantower Indicators Help

Exponential Moving Average (EMA)

Description

The Exponential Moving Average (EMA) is a weighted moving average used in trading to measure trends in financial securities. Unlike the Simple Moving Average (SMA), which assigns equal weight to all price data points, the EMA gives more weight to recent data. The EMA reacts more quickly to price changes than the SMA, making it ideal for volatile markets. It helps predict future price direction by emphasizing recent data.

How It Works

  1. Calculate SMA for specified period. For detailed information see Simple Moving Average (SMA)

  2. Calculate the weighting multiplier. For a 14-day EMA.

  3. Multiply the multiplier by the current price and add it to the previous EMA value. Repeat this process for each data point.

Formula

//1. Calculate SMA int periodMovingAverage = 14; //simple moving average for 14 days double[] closePrices = new double[] { 22.0, 24.0, 25.0 ..., }; double totalPeriod = closePrices.Sum() / periodMovingAverage; //2. Calculate Weighting multiplier n = 14 (days) double multiplier = 2.0 / (periodMovingAverage + 1) = 0.13333; //3. Calculate Exponential Moving Average (EMA) double ema = (Price() - previousEma) * multiplier + previousEma;

Chart Settings

ema-settings-1.png
ema-settings-2.png

* For common indicator properties please see Common Indicator Settings

  1. "Period Moving Average"

Watchlist Settings

wl-ema-settings.png

* For common indicator properties please see Common Indicator Settings

  1. "Period Moving Average"

Chart View

chart-ema-chart.png
Last modified: 24 September 2024