---
title: "2. Moving averages, WEMA-21 and SuperTrend"
slug: "moving-averages-wema-and-supertrend"
kind: "HELP_ARTICLE"
category: "indicators"
locale: "en"
canonical: "https://help.forecastcity.com/indicators/moving-averages-wema-and-supertrend"
published: "2026-11-22T00:30:38.637Z"
updated: "2026-11-22T00:30:38.637Z"
description: "Configure WEMA-21 on (H + L + C + C)/4, smooth higher-timeframe moving averages, SMA, EMA, HMA, VWMA, and SuperTrend flip levels on 4CM-AI Charts."
---

# 2. Moving averages, WEMA-21 and SuperTrend

Checking trend slope across Daily and intraday charts keeps you trading with the main wave inside 4CastMachine AI zones. On **4CM-AI Charts**, you can plot five moving-average formulas, ForecastCity's signature [WEMA-21](<https://app.forecastcity.com/academy/glossary/glossary#wema-21-moving-average>), smooth higher-timeframe curves on intraday candles, and SuperTrend flip levels. You can also ask **AI Trading Assistant** by voice or text to add `WEMA 21` and `SuperTrend` in seconds.

![XAUUSD 4h chart with a smooth Daily WEMA-21 curve, SuperTrend 10 3, and bearish 4CastMachine AI zones.](https://m.forecastcity.com/t/tnt_forecastcity/media/60/608b9318506e1ca7cbe33f8e9668ac8f247d2b42fb5e733451a45dbd921aface.png)

Daily WEMA-21 (1D) and SuperTrend (10, 3) confirming downward momentum below the 3830.42 Pivot on XAUUSD 4h.

1.  **Daily WEMA-21 (1D) and SuperTrend legend:** shows active inputs (`EMA 21 hlcc4 1D` and `SuperTrend 10 3`) in the top-left corner.
    
2.  **Smooth Daily WEMA-21 curve and SuperTrend line:** the blue Daily WEMA-21 curve caps bounces smoothly across 4h candles while **SuperTrend** stays red.
    
3.  **4CastMachine AI zones and green arrows:** maps the bearish path below `3830.42` toward the `3512.72` to `3359.54` [Profit zone](<https://app.forecastcity.com/academy/glossary/glossary#buy-zone-sell-zone-and-reverse-zone>).
    

## Compare moving average formulas

Every moving average accepts a **Length** from `1` to `500` candles and eight price sources, from **Close** to weighted range averages.

-   **Simple Moving Average** (`SMA`, default `20`): weights each candle equally, ideal for major benchmarks like `SMA 50` and `SMA 200`.
    
-   **Exponential Moving Average** (`EMA`, default `20`): gives extra weight to recent candles so slope turns appear faster.
    
-   **Weighted Moving Average** (`WMA`, default `20`): uses linear weights that favor new candles and drop old spikes cleanly.
    
-   **Hull Moving Average** (`HMA`, default `9`): uses square-root smoothing to cut lag during fast swings.
    
-   **Volume-Weighted Moving Average** (`VWMA`, default `20`): weights each candle by exchange volume on Crypto and Stocks.
    

## Why WEMA-21 matters across ForecastCity strategies

**WEMA-21** is the core trend average built for the [Trend Hunter Strategy](<https://app.forecastcity.com/academy/trend-hunter-strategy/end-of-a-trend-in-trend-hunter-strategy>) and built into **AI Strategy Studio**. Instead of reading raw closes alone, WEMA-21 runs a `21`\-period EMA on weighted close `(H + L + C + C)/4` (shown as `hlcc4`).

Counting each candle's close twice beside its high and low smooths out sudden wick spikes while tracking real closing commitment. On Daily (`D`) charts, strong trends ride along WEMA-21 for weeks, and price rarely crosses it without reacting. ForecastCity uses Daily WEMA-21 in three key trade-management rules:

-   **Weak DTO Break-Even rule:** in the [Trend Hunter stop rules](<https://app.forecastcity.com/academy/trend-hunter-strategy/no-loss-guarantee-and-stop-loss-in-trend-hunter-strategy>), if a Daily entry starts on weak momentum, touching Daily WEMA-21 cues [Break-Even](<https://app.forecastcity.com/academy/glossary/glossary#soft-stop-loss-and-break-even>).
    
-   **Strong DTO rule with ATR(264, D):** when Daily WEMA-21 sits near entry on a strong DTO setup, wait until price clears WEMA-21 by one full [Daily ATR(264)](<https://app.forecastcity.com/academy/glossary/glossary#atr264-d-stop-buffer-and-near-zone-margin>) before moving your stop to Break-Even.
    
-   **AI Strategy Studio management:** in [Strategy Studio management setups](<https://help.forecastcity.com/strategies/management-setups>), you can trigger automatic Break-Even when a [healthy candle](<https://app.forecastcity.com/academy/glossary/glossary#healthy-candle-breakout>) breaks `WEMA` `21` on `1D`.
    

## Plot WEMA-21 and smooth higher-timeframe curves

You can display Daily WEMA-21 right on a `4h` or `1h` chart without blocky steps. Picking a higher **Timeframe** scales the lookback across that market's real trading candles per higher-timeframe candle. A `21`\-period `1 day` curve on `XAUUSD` 4h covers 21 full trading days smoothly.

![EMA Settings modal on XAUUSD 4h with Length 21, Source (H + L + C + C)/4, and Timeframe 1 day.](https://m.forecastcity.com/t/tnt_forecastcity/media/bf/bf0c5d1910f0086019591cdabf5efcc57fdf76e78ab906652e91e1d063559658.png)

Set up Daily WEMA-21 on a 4h chart with Length 21, Source (H + L + C + C)/4, and Timeframe 1 day.

1.  **Length set to 21:** sets the 21-candle exponential lookback period.
    
2.  **Weighted close Source (H + L + C + C)/4:** blends high, low, and double-weighted close to filter erratic wicks.
    
3.  **Higher Timeframe set to 1 day:** draws the Daily WEMA-21 curve on intraday charts and adds `1D` in the legend.
    

**Voice shortcut:** open **AI Trading Assistant** and say or type `Add WEMA 21`. It adds an EMA with Length `21` and Source `(H + L + C + C)/4` right away, ready to save under **Defaults**.

## Track volatility flips with SuperTrend

**SuperTrend** blends trend direction and Average True Range into one trailing support or resistance line. Open **Inputs** to adjust ATR Length (default `10`) and Multiplier (default `3`).

-   **Bullish trend (green line below price):** holds underneath pullbacks until a candle closes below the line.
    
-   **Bearish trend (red line above price):** caps rallies, like the red `3655.83` SuperTrend ceiling below `3830.42` on `XAUUSD` 4h.
    
-   **SuperTrend flip alerts:** in [Alerts and Strategy Studio](<https://help.forecastcity.com/indicators/indicators-with-ai-alerts-and-strategies>), trigger alerts on **turns bullish** or **turns bearish** inside a 4CastMachine AI zone.
    

## Related guides

-   [6\. ATR, Daily ATR(264) stop buffers and PSAR](<https://help.forecastcity.com/indicators/atr-264d-stop-buffers-and-psar>)
    
-   [6\. No-Loss Guarantee (Break-Even) & Stop Loss in the Trend Hunter Strategy](<https://app.forecastcity.com/academy/trend-hunter-strategy/no-loss-guarantee-and-stop-loss-in-trend-hunter-strategy>)
    
-   [5\. Management setups in AI Strategy Studio](<https://help.forecastcity.com/strategies/management-setups>)
