Skip to main content

fib

Create Fibonacci Retracement Levels.

This method draws from a classic technique to pinpoint significant price levels that often indicate where the market might find support or resistance. It's a tool used to gauge potential turning points in the data by applying a mathematical approach rooted in nature's patterns. Is used to get insights into where prices could head next, based on historical movements.

Example:​

from openbb import obb
stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp")
fib_data = obb.technical.fib(data=stock_data.results, period=120)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]List of data to apply the indicator to.NoneFalse
indexstrIndex column name, by default "date"dateTrue
periodPositiveIntPeriod to calculate the indicator, by default 120120True

Returns​

List of data with the indicator applied.