Skip to content

Internal and swing structure

IndicatorsFrom Trader

  • Price
  • High
  • Low
Internal and swing structure

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
This is how the node looks on the board: inputs on the left, outputs on the right.

Like waves on a rising tide: the swing structure shows whether the water is rising overall, the internal structure the small waves on top. When a wave turns with the tide again, the move often goes on.

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.

BTC/USDT with internal structure (5) and swing structure (20)Lines from the large swing to the break with BOS or CHoCH, small marks at the breaks of the internal structure, below the swing trend and the continuations.Price BTC/USDT80,00082,00084,000CHoCHCHoCHiCHoCHiBOSiCHoCHiCHoCHiCHoCHiBOSiCHoCHiCHoCHContinuation upContinuation downOct 11Oct 12Oct 13Oct 14Oct 15Oct 16Oct 17
  • Swing break up, BOS or CHoCH
  • Swing break down
  • Internal break, iBOS or iCHoCH
  • Swing trend
BTC/USDT candles with two market structures: outside from swings with 20 candles before and after (lines with BOS and CHoCH), inside from swings with 5 (iBOS and iCHoCH marks). The strip shows the swing trend. The node reports a continuation when the internal structure turns in the direction of the swing trend: after a pullback in an uptrend, an internal CHoCH up.

Properties of the Internal and swing structure node: the chart with BTC/USDT candles (sample prices), lines from the large swings to their breaks with BOS and CHoCH, iBOS and iCHoCH marks at the breaks of the internal structure and the swing trend as a strip, below it the first fields.

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.

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.

Default: 5 · from 1 to 50, whole number

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.

Default: 20 · from 2 to 100, whole number

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.

Default: Close

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.

Notifies you when a pullback ends in a swing uptrend: the internal structure breaks upward again, with the larger trend.

Example chain: Candle, Internal and swing structure, TelegramConnections: Candle → Internal and swing structure, Candle → Internal and swing structure, Candle → Internal and swing structure, Internal and swing structure → Telegram.CandleETH/USDT · 1hInternal and swing st…internal 5 · Swing 20Telegramlinked chat · at most every4 h

How to connect the nodes:

  1. Candle (Price) → Internal and swing structure (Price)
  2. Candle (High) → Internal and swing structure (High)
  3. Candle (Low) → Internal and swing structure (Low)
  4. 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.

structure-dual.json
{
"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" }
]
}

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”
  • 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.

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 key ind
  • Settings in the chain: inner (Internal swings), swing (Swing length), trigger (Break by)
  • Pins in the chain: Input close, high, low · Output swingBosUp, 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