Tool
Fibonacci Retracement
calc.fibonacci_retracement
Inputs
A swing leg bundle (a zigzag high-to-low or low-to-high) whose two endpoints anchor the 0% and 100% levels. Used by the leg (default), leg_plus_point and leg_plus_price modes.
The pivot point whose price the node compares against the ladder so it can report which level price is currently at. Used by leg_plus_point.
The first anchor pivot (start of the move) when building the swing from two points.
The second anchor pivot (end of the move) when building the swing from two points.
A raw price number line used as the probe in leg_plus_price mode (instead of a test_point bundle).
A raw price for the start of the move in two_prices mode.
A raw price for the end of the move in two_prices mode.
Outputs
A bundle of the computed retracement levels — each ratio paired with its price — plus, in the measurement modes, where the probe sits relative to them (`test_pct`), ready to feed proximity tests, entries or stops.
Fibonacci Retracement draws a ladder of horizontal price levels across a swing move (a “leg”) — the canonical 2-point tool: the swing’s start and end are its only anchors. Traders watch these levels — like 0.382, 0.5 and 0.618 — as places where a pullback often stalls and the trend resumes.
How it works
You give it the swing — one leg wire (default), two pivot points, or two raw prices — and the node spreads a set of ratio levels between the two endpoints: 0% sits at the leg’s end (the most recent extreme), 100% at its start, and each fib ratio lands proportionally in between — levels above 100% project beyond the start as extensions. Levels are configured in percent units (61.8 means 61.8%), and the default preset is 0 / 23.6 / 38.2 / 50 / 61.8 / 78.6 / 100 / 161.8 / 261.8 / 423.6. Two optional measurement modes (leg + point, leg + price) add a test probe and report its retracement % as `test_pct`. `level_count` sets how many levels to draw, and the per-level `level_N_pct` knobs let you override each ratio. The output bundle carries every level’s price so downstream nodes can test proximity, place entries, or set targets. For 3-point A-B-C projections use calc.fibonacci_projection — the trend-based extension.
Modes
Mode options
The canonical 2-point shape: one leg wire carries both swing endpoints and the node draws the ladder between them — nothing else to wire.
When to use: The default — feed any zigzag / anchor leg and read the levels straight off it.
Builds the swing from two pivot points (A = start, B = end) instead of a single leg bundle, so you control both ends explicitly.
When to use: When you already have discrete swing pivots wired and want to define the move A→B yourself.
Defines the swing from two raw price numbers — price_a and price_b — with no bundles at all.
When to use: When your swing endpoints come from constants or computed values rather than zigzag bundles.
Anchors the ladder on a leg bundle and reads the current price from a test point so the node can tell which level price is sitting on.
When to use: The common setup — feed a zigzag leg plus the latest swing point to track a live pullback against the levels.
Anchors on a leg bundle but takes the probe value from a raw price buffer rather than a pivot point.
When to use: When the level you care about is a plain number line (e.g. close) instead of a structured swing point.
Level count options
Configuration
How the swing is supplied. Canonical 2-point shapes: ‘leg’ (one leg bundle — the default), ‘two_points’ (pivots A and B), ‘two_prices’ (raw prices A and B). Measurement shapes: ‘leg_plus_point’ / ‘leg_plus_price’ add a probe and report its retracement % as test_pct. The inspector greys out the inputs that don’t apply to the chosen mode.
How many fib levels to draw, from 1 up to 12. More levels (e.g. adding 0.236 and 0.786 to the core 0.382 / 0.5 / 0.618) give finer pullback targets but a busier ladder; fewer keep it focused on the key zones. Only the first `level_count` of the `level_N_pct` ratios are used.
The ratio for the 1st level, as a fraction of the leg (0.0 means the leg’s starting endpoint). Classic default is 0.0.
The ratio for the 2nd level. A common value is 0.236.
The ratio for the 3rd level. A common value is 0.382.
The ratio for the 4th level. A common value is 0.5 (the half-way retrace).
The ratio for the 5th level. The 0.618 ‘golden’ retracement is the usual value.
The ratio for the 6th level. A common value is 0.786.
The ratio for the 7th level, typically 1.0 (the leg’s far endpoint, a full retrace).
The ratio for the 8th level. Often an extension beyond the leg such as 1.272.
The ratio for the 9th level. A common extension value is 1.414.
The ratio for the 10th level. A common extension value is 1.618.
The ratio for the 11th level, e.g. a deeper extension like 2.0.
The ratio for the 12th level, e.g. a far extension like 2.618.
Connects to
Examples
- Entry zone: in leg_plus_point mode, draw the levels on the last up-leg and gate longs to bars where price pulls back into the 0.618 level.
- Targets: in leg mode with extension ratios (1.272, 1.618), use the upper levels as take-profit prices for a swing trade.
Common mistakes
- Setting `level_count` higher than the number of `level_N_pct` ratios you actually configured, so the extra slots fall back to defaults you didn’t intend.
- Wiring a leg bundle but selecting the two_points / two_prices mode (or vice-versa), which leaves the active inputs unbound while the ignored ones look connected.