Skip to content
StatePath
Tool Atlascalc.fibonacci_retracement

Tool

Fibonacci Retracement

calc.fibonacci_retracement

CalculationFibonacci

Inputs

legBundle (untagged)

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.

test_pointBundle (untagged)

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.

point_aBundle (untagged)

The first anchor pivot (start of the move) when building the swing from two points.

point_bBundle (untagged)

The second anchor pivot (end of the move) when building the swing from two points.

test_priceBuffer (time series)

A raw price number line used as the probe in leg_plus_price mode (instead of a test_point bundle).

price_aBuffer (time series)

A raw price for the start of the move in two_prices mode.

price_bBuffer (time series)

A raw price for the end of the move in two_prices mode.

Outputs

Bundle (untagged)

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.

Fibonacci Retracement overview diagram00.2360.3820.50.6180.7861.0

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

Leg (canonical)leg

The canonical 2-point shape: one leg wire carries both swing endpoints and the node draws the ladder between them — nothing else to wire.

Leg (canonical) diagram00.3820.6181.0

When to use: The default — feed any zigzag / anchor leg and read the levels straight off it.

Two pointstwo_points

Builds the swing from two pivot points (A = start, B = end) instead of a single leg bundle, so you control both ends explicitly.

Two points diagramAB

When to use: When you already have discrete swing pivots wired and want to define the move A→B yourself.

Two pricestwo_prices

Defines the swing from two raw price numbers — price_a and price_b — with no bundles at all.

Two prices diagram00.3820.51.0

When to use: When your swing endpoints come from constants or computed values rather than zigzag bundles.

Leg + point (measure)leg_plus_point

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.

Leg + point (measure) diagram00.3820.6181.0

When to use: The common setup — feed a zigzag leg plus the latest swing point to track a live pullback against the levels.

Leg + price (measure)leg_plus_price

Anchors on a leg bundle but takes the probe value from a raw price buffer rather than a pivot point.

Leg + price (measure) diagram00.50.6181.0

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

11
22
33
44
55
66
77
88
99
1010
1111
1212

Configuration

modeenum

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.

Choices:legtwo_pointstwo_pricesleg_plus_pointleg_plus_price
level_countenum

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.

Choices:123456789101112
level_count diagram00.2360.3820.50.6180.7861.0
level_0_pctscalar

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.

level_1_pctscalar

The ratio for the 2nd level. A common value is 0.236.

level_2_pctscalar

The ratio for the 3rd level. A common value is 0.382.

level_3_pctscalar

The ratio for the 4th level. A common value is 0.5 (the half-way retrace).

level_4_pctscalar

The ratio for the 5th level. The 0.618 ‘golden’ retracement is the usual value.

level_5_pctscalar

The ratio for the 6th level. A common value is 0.786.

level_6_pctscalar

The ratio for the 7th level, typically 1.0 (the leg’s far endpoint, a full retrace).

level_7_pctscalar

The ratio for the 8th level. Often an extension beyond the leg such as 1.272.

level_8_pctscalar

The ratio for the 9th level. A common extension value is 1.414.

level_9_pctscalar

The ratio for the 10th level. A common extension value is 1.618.

level_10_pctscalar

The ratio for the 11th level, e.g. a deeper extension like 2.0.

level_11_pctscalar

The ratio for the 12th level, e.g. a far extension like 2.618.

Connects to

Reads from
Feeds into

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.

See also