MACD
Este conteúdo não está disponível em sua língua ainda.
- Value
12 · 26 · 9
- MACD
- Signal line
- Histogram
Shows whether a trend gains momentum. Compares a fast and a slow average of the price. When they move apart, the trend gains momentum; when they converge, it fades. You also get the signal line (the smoothed MACD line) and the histogram (the gap between the two). Example: when the MACD line crosses above the signal line, the price is picking up upward momentum.
What it looks like
Section titled “What it looks like”- MACD line
- Signal line
- Histogram
- crosses above
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.
Fast average
Section titled “Fast average”Candles for the fast average, usually 12.
Slow average
Section titled “Slow average”Candles for the slow average, usually 26. Should be larger than the fast one.
Signal line
Section titled “Signal line”How many candles the MACD line is smoothed over to form the signal line, usually 9. Almost everyone uses the defaults 12, 26 and 9; you rarely need to change them.
Example
Section titled “Example”The classic MACD cross: the MACD line crosses above its signal line.
How to connect the nodes:
- Candle (Price) → MACD (Value)
- MACD (MACD) → Compare A/B (A)
- MACD (Signal line) → Compare A/B (B)
- Compare A/B (true/false) → Telegram (Trigger)
On the board it reads: 12 · 26 · 9
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: MACD", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } }, { "id": "d1", "type": "core.macd", "position": { "x": 260, "y": 40 }, "settings": {} }, { "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "crossesAbove" } }, { "id": "t1", "type": "core.telegram", "position": { "x": 700, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.close", "to": "d1.in" }, { "from": "d1.macd", "to": "k1.a" }, { "from": "d1.signal", "to": "k1.b" }, { "from": "k1.out", "to": "t1.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 | MACD | Number series | – |
| Output | Signal line | Number series | – |
| Output | Histogram | Number series | – |
Good to know
Section titled “Good to know”- In messages the values are called “MACD”, “MACD signal”, “MACD histogram”.
- Warm-up with the default settings: 175 candles (this many extra candles are loaded by the replay before the value is reliable).
- Search also finds it under: momentum, trend, signal, histogram.
- More on this, with ready-made templates and their test results: Supertrend and MACD alerts.
Technical details
Section titled “Technical details”Difference of two EMAs, signal line as an EMA of that difference, histogram as the gap between both; the same formula as ta.macd in TradingView.
- Type in the chain:
core.macd· Version 1.0.0 · Category keyind - Settings in the chain:
fast(Fast average),slow(Slow average),signal(Signal line) - Pins in the chain: Input
in· Outputmacd,signal,hist - Reference tests in the manifest: 1 (with fixed price data: 500 candles of 1h)
- How a node is built
Versão 2026.11.29.15 · Changelog