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.False
indexstrIndex column name, by default "date"dateFalse
close_columnLiteral['close', 'adj_close']closeFalse
periodintPeriod to calculate the indicator, by default 120120False
start_datestrNoneTrue
end_datestrNoneTrue

Returns​

OBBject
results : List[Data]
List of data with the indicator applied.