# Auto Fib Extension

#### Definition

Auto Fib Extension is a tool that calculates target price levels following a retracement. Extension levels also indicate potential price reversal areas and show possible price levels after a retracement is completed. These levels are based on the key Fibonacci coefficients and the price movement of the symbol on the chart.

To use the new Auto Fib Extension indicator, use the _Indicators_ button on your chart and find the _Auto Fib Extension_ indicator in the _Built-ins_ tab.

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43190963444/original/_Gc0rydl7eVAz5ycxUcJGx3Si3b_jyHi0Q.gif?1611315466)

The indicator is written in Pine Script and its source code is accessible. You can access it from the _Source code_ icon to the right of the indicator's name on the chart, or from the Pine Editor, by using the _Open_ button, then clicking on _New default built-in script…_ and _Auto Fib Extension_.

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43190964139/original/DUtAYoS6deNFMusAMbO5OBiUXEJgtpTibw.gif?1611315631)

#### History

The concept of Fibonacci extensions is derived from the Fibonacci retracement method. It was developed to determine target price levels following a retracement. It is named after its use of the Fibonacci sequence and is based on the theory that markets often retrace an anticipated portion of a move before continuing in the initial direction.

#### Calculation

Fibonacci extensions don't have a specific formula. The extension levels are calculated based on the Fibonacci sequence, and the most common levels are 61.8%, 100%, 161.8%, 200%, and 261.8%. The Trend-Based Fib Extension drawing tool is based on three points set by the trader: the first two points define the trend line, the last one defines the retracement level. After setting the points, horizontal level lines are drawn and the levels identifying potential targets for further price movement are determined based on these lines.

With the new Auto Fib Extension indicator, you do not need to set points manually, as is required with the Trend-Based Fib Extension drawing tool. The algorithm will select the points and draw the levels automatically.

#### What to look for

Points 1 and 2 in this image show the direction of the trend line. Points 2 and 3 show the retracement level. Possible levels which the price may reach are shown by the indicator lines: the most commonly used take profit lines are 0.618, 1.0 and 1.618.

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43582430623/original/BEu19i3eMjQKpmZBPiHH_QHl9FdfVp9bLQ.png?1758718060)

#### Inputs

##### Depth

The minimum number of bars that will be taken into account when calculating the indicator.

##### Extend Lines

Allows extending lines on the chart to the left or right.

##### Reverse

Allows you to reverse the order of the lines and the direction the indicator calculates.

##### Prices

Displays price values.

##### Levels

Displays level values.

##### Levels colors

The color of each level line.

##### Levels Format

The format used for displaying values. It can use either regular numerical values (the _Values_ option) or _Percent_ format.

#### Summary

To sum up, this has been a long awaited indicator that we are happy to add to our ever-growing list of technical analysis tools. Auto Fib Extension can be very useful in determining target levels after a retracement. Most technical indicators look backward by analyzing historical prices; Fibonacci extensions help identify possible price levels in the future.