Moving average
Esta página aún no está disponible en tu idioma.
- Value
EMA 200
- Average
Smooths the price into a trend line. Averages the last candles. Short spikes drop out and the trend remains: when the price is above the average, the trend tends to point up, below it down. Example: the EMA 200 is a common line for the long-term trend. When the price crosses above it, many see the start of an uptrend.
What it looks like
Section titled “What it looks like”- Price (close of each candle)
- EMA 20
- SMA 20
Settings
Section titled “Settings”The settings appear on the right under “Properties” once you click the node on the board. Below each field you find the same explanation as here.
How much weight recent candles get. If unsure, use EMA.
- SMA · every candle counts equally: Simple average: every candle counts the same. Calm, but slow to react to turns. Common as SMA 50 or SMA 200.
- EMA · recent candles count more (default): Exponential average: recent candles count more than old ones. Reacts faster than the SMA and is the usual choice, for example as EMA 20 or EMA 200.
- WMA · weight drops evenly: Weighted average: the newest candle counts most, each older one evenly less. Follows the price more closely than the SMA.
- HMA · fast, little lag: Hull average: follows the price with very little lag and still stays smooth. At turns it sometimes overshoots a little.
Candles
Section titled “Candles”How many candles the average covers. Common are 20 for the short-term, 50 for the medium-term and 200 for the long-term trend. More candles make the line calmer but slower.
Example
Section titled “Example”Notifies you when the price crosses above the EMA 200.
How to connect the nodes:
- Candle (Price) → Moving average (Value)
- Candle (Price) → Compare A/B (A)
- Moving average (Average) → Compare A/B (B)
- Compare A/B (true/false) → Push (Trigger)
On the board it reads: EMA 200
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Moving average", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } }, { "id": "e1", "type": "core.ma", "position": { "x": 260, "y": 40 }, "settings": { "kind": "ema", "length": 200 } }, { "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "crossesAbove" } }, { "id": "p1", "type": "core.push", "position": { "x": 700, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.close", "to": "e1.in" }, { "from": "c1.close", "to": "k1.a" }, { "from": "e1.out", "to": "k1.b" }, { "from": "k1.out", "to": "p1.in" } ]}Inputs and outputs
Section titled “Inputs and outputs”Only matching types connect: number series to number series (round pin), signal to signal (square), message to message (diamond).
| Direction | Pin | Type | Note |
|---|---|---|---|
| Input | Value | Number series | required |
| Output | Average | Number series | in the unit of the input |
Good to know
Section titled “Good to know”- In messages the value is called “EMA 20”.
- Warm-up with the default settings: 100 candles (this many extra candles are loaded by the replay before the value is reliable).
- Search also finds it under: moving average, trend, sma, ema, wma, hma, hull.
- More on this, with ready-made templates and their test results: Golden cross alerts.
Technical details
Section titled “Technical details”Simple, exponential (seeded with the SMA of the first values), linearly weighted and Hull average; the same formulas as ta.sma, ta.ema, ta.wma and ta.hma in TradingView.
- Type in the chain:
core.ma· Version 1.0.0 · Category keyind - Settings in the chain:
kind(Type),length(Candles) - Pins in the chain: Input
in· Outputout - Reference tests in the manifest: 5 (with fixed price data: 500 candles of 1h)
- How a node is built
Versión 2026.11.29.15 · Changelog