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 linesfillBackground: true/false for shadingshowPrices: display price labels on levelsshowCoeffs: display % ratios (like 161.8%, 261.8%)
Return Value
string — The unique
idof 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
If your three points are too close or random, the projection won’t make sense.
Extensions are not guarantees — treat them as guides, not certainties.
Last updated