Swing points
- High
- Low
5 candles before · 5 after
- Swing high
- Swing low
- new swing high
- new swing low
Last confirmed highs and lows. Finds turning points in the price: a swing high is higher than the candles before and after it, a swing low lower. Whether a high was one is only certain once the candles after it have closed. That is why the node reports it that many candles later and never changes it afterwards. The levels stay until a new swing comes. Example: “Price crosses above swing high” reports when the price breaks out above the last high.
What it looks like
Section titled “What it looks like”- last swing high
- last swing low
- where the swing is
- where the node reports it
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.
Candles before
Section titled “Candles before”How many candles before a high must all be lower, before a low higher. With more candles only clearer turning points count.
Candles after
Section titled “Candles after”How many candles after a high must not rise above it before it counts as a swing. The node reports it that many candles later; with fewer candles the report comes sooner, but also for smaller turning points.
Example
Section titled “Example”A breakout above the last confirmed swing high: the price closes above it.
How to connect the nodes:
- Candle (High) → Swing points (High)
- Candle (Low) → Swing points (Low)
- Candle (Price) → Compare A/B (A)
- Swing points (Swing high) → Compare A/B (B)
- Compare A/B (true/false) → Push (Trigger)
On the board it reads: 5 candles before · 5 after
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Swing points", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } }, { "id": "s1", "type": "core.swings", "position": { "x": 260, "y": 40 }, "settings": {} }, { "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.high", "to": "s1.high" }, { "from": "c1.low", "to": "s1.low" }, { "from": "c1.close", "to": "k1.a" }, { "from": "s1.high", "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 | High | Number series | required |
| Input | Low | Number series | required |
| Output | Swing high | Number series | appears in messages as a price, e.g. “$81,616” |
| Output | Swing low | Number series | appears in messages as a price, e.g. “$81,616” |
| Output | new swing high | Signal (true/false) | – |
| Output | new swing low | Signal (true/false) | – |
Good to know
Section titled “Good to know”- In messages the values are called “Swing high 5 · 5”, “Swing low 5 · 5”.
- Warm-up with the default settings: 510 candles (this many extra candles are loaded by the replay before the value is reliable).
- Search also finds it under: swing, turning point, high, low, pivot, structure, breakout, support, resistance.
Technical details
Section titled “Technical details”Swing high: a high that is higher than the highs of the candles before and at least as high as those of the candles after, so with equal highs the first one counts. Reported on the candle with which the candles after have closed, and held as a level until a new one comes, at most 500 candles after the high. Swing low likewise with the lows.
- Type in the chain:
core.swings· Version 1.0.0 · Category keyind - Settings in the chain:
left(Candles before),right(Candles after) - Pins in the chain: Input
high,low· Outputhigh,low,newHigh,newLow - Reference tests in the manifest: 1 (with fixed price data: 500 candles of 1h)
- How a node is built
Version 2026.10.21.23 · Changelog