fibTrendExt

The Fibonacci Trend Extension is like a forward-looking version of retracement. Instead of just measuring the pullback between two points, it projects Fibonacci levels beyond your chosen move. Traders use it to spot potential profit targets or continuation levels in the direction of the trend.

Think of it as:

  • Retracement → “How far back might price pull?”

  • Trend Extension → “How far forward might price go?”

Syntax

fibTrendExt(originPoint, targetPoint, anchorPoint, styles?)

Parameters

  • originPoint: The first anchor of your trend move. Usually the start of a swing. Build with newPoint(time, price) . Example: newPoint(time(40), low(40)).

  • targetPoint: The second anchor. Typically the end of the initial swing. Build with newPoint(time, price) . Example: newPoint(time(25), high(25)).

  • anchorPoint: The third point, used to “project” the extension from. Often a retracement low/high after the move. Example: newPoint(time(10), low(10)).

  • styles (optional) Customize the look:

    • linecolor: color of the extension lines (e.g., color.green)

    • linewidth: thickness of lines

    • fillBackground: true/false for shading

    • showPrices: display price labels on levels

    • showCoeffs: display % ratios (like 161.8%, 261.8%)

Return Value

  • string — The unique id of the extension drawing.

Example

This script plots a green Fibonacci Trend Extension every 30 candles. We take three clear swing points to define it:

This will draw green extension levels above the original swing, often landing around 161.8%, 261.8%, etc.

Result

Tips

  • Use it for profit targets in trending markets.

  • Combine with retracements — retracement gives entry zones, extension gives exit zones.

  • The 161.8% level is a favorite among traders as a strong target.

Warning

Good Practice

Last updated