Internal and swing structure
- Price
- High
- Low
internal 5 · Swing 20
- Swing: BOS up
- Swing: BOS down
- Swing: CHoCH up
- Swing: CHoCH down
- Internal: BOS up
- Internal: BOS down
- Internal: CHoCH up
- Internal: CHoCH down
- Swing uptrend
- Swing downtrend
- Continuation up
- Continuation down
- Swing break level
- Internal break level
Small and large market structure at once. Reads market structure twice from the same candles: outside from large swings (20 candles before and after by default), inside from small ones (5). The swing structure gives the trend, the internal structure shows the pullbacks within it. Both have BOS (a break in the direction of the trend) and CHoCH (the first break against the trend) as in the Market structure node. “Continuation up” reports when, in a swing uptrend, the internal structure breaks upward again after a pullback (an internal CHoCH up); many read that as a sign the larger trend is carrying on. Example: “Continuation up” to Telegram reports for ETH on hourly candles the moment a pullback in an uptrend ends.
What it looks like
Section titled “What it looks like”- Swing break up, BOS or CHoCH
- Swing break down
- Internal break, iBOS or iCHoCH
- Swing trend
Setting it in the chart
Section titled “Setting it in the chart”
In the properties, a chart shows the last 150 candles and on top of them what the node finds with your settings; dotted or dashed is what it did not know yet at that time. The top line shows the state at the last candle, and the chart follows every setting right away.
More under Smart money and Chart above the price.
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.
Internal swings
Section titled “Internal swings”How many candles before and after a swing of the internal structure has to exceed. With 5 it shows the small pullbacks; a swing is fixed once the candles after it are there.
Swing length
Section titled “Swing length”How many candles before and after a swing of the large structure has to exceed. 20 hourly candles are nearly a day; with 50 only the large turns remain, but they are only fixed 50 candles later.
Break by
Section titled “Break by”What the price needs to break a swing, for both structures.
- Close (default): The candle has to close beyond the swing. A wick alone does not count, so brief excursions stay out.
- Wick: A high above the swing high or a low below the swing low is enough. Reports sooner, also for breakouts that fall back right away.
Example
Section titled “Example”Notifies you when a pullback ends in a swing uptrend: the internal structure breaks upward again, with the larger trend.
How to connect the nodes:
- Candle (Price) → Internal and swing structure (Price)
- Candle (High) → Internal and swing structure (High)
- Candle (Low) → Internal and swing structure (Low)
- Internal and swing structure (Continuation up) → Telegram (Trigger)
On the board it reads: internal 5 · Swing 20
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Internal and swing structure", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "ETH/USDT", "timeframe": "1h" } }, { "id": "s1", "type": "core.structure-dual", "position": { "x": 260, "y": 40 }, "settings": {} }, { "id": "t1", "type": "core.telegram", "position": { "x": 480, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.close", "to": "s1.close" }, { "from": "c1.high", "to": "s1.high" }, { "from": "c1.low", "to": "s1.low" }, { "from": "s1.continuationUp", "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 | Price | Number series | required |
| Input | High | Number series | required |
| Input | Low | Number series | required |
| Output | Swing: BOS up | Signal (true/false) | – |
| Output | Swing: BOS down | Signal (true/false) | – |
| Output | Swing: CHoCH up | Signal (true/false) | – |
| Output | Swing: CHoCH down | Signal (true/false) | – |
| Output | Internal: BOS up | Signal (true/false) | – |
| Output | Internal: BOS down | Signal (true/false) | – |
| Output | Internal: CHoCH up | Signal (true/false) | – |
| Output | Internal: CHoCH down | Signal (true/false) | – |
| Output | Swing uptrend | Signal (true/false) | – |
| Output | Swing downtrend | Signal (true/false) | – |
| Output | Continuation up | Signal (true/false) | – |
| Output | Continuation down | Signal (true/false) | – |
| Output | Swing break level | Number series | appears in messages as a price, e.g. “$81,616” |
| Output | Internal break level | Number series | appears in messages as a price, e.g. “$81,616” |
Good to know
Section titled “Good to know”- In messages the values are called “swing break level 5 · 20”, “internal break level 5 · 20”.
- Warm-up with the default settings: 1,040 candles (this many extra candles are loaded by the replay before the value is reliable).
- Search also finds it under: market structure, internal structure, swing structure, bos, choch, continuation, pullback, smart money, smc.
Technical details
Section titled “Technical details”Two market structures as in the Market structure node, with swings from “Internal swings” and “Swing length” candles before and after, each for at most 500 candles. Continuation up: an internal CHoCH up on a candle where the swing trend points up; down mirrored. The levels give the swing of the last break while its trend holds.
- Type in the chain:
core.structure-dual· Version 1.0.0 · Category keyind - Settings in the chain:
inner(Internal swings),swing(Swing length),trigger(Break by) - Pins in the chain: Input
close,high,low· OutputswingBosUp,swingBosDown,swingChochUp,swingChochDown,innerBosUp,innerBosDown,innerChochUp,innerChochDown,bullish,bearish,continuationUp,continuationDown,swingLevel,innerLevel - Reference tests in the manifest: 1 (with fixed price data: 500 candles of 1h)
- How a node is built
Version 2026.10.25.16 · Changelog