ichimoku
Calculate the Ichimoku Cloud.
Also known as Ichimoku Kinko Hyo, is a versatile indicator that defines support and resistance, identifies trend direction, gauges momentum and provides trading signals. Ichimoku Kinko Hyo translates into "one look equilibrium chart". With one look, chartists can identify the trend and look for potential signals within that trend.
Examples
from openbb import obb
# Get the Ichimoku Cloud.
stock_data = obb.equity.price.historical(symbol='TSLA', start_date='2023-01-01', provider='fmp')
ichimoku_data = obb.technical.ichimoku(data=stock_data.results, conversion=9, base=26, lookahead=False)
Parameters
- standard
data: list[openbb_core.provider.abstract.data.Data]
list of data to be used for the calculation.
index: str
Default: date
Index column name to use with data, by default 'date'.
conversion: int
Default: 9
Number of periods for the conversion line, by default 9.
base: int
Default: 26
Number of periods for the base line, by default 26.
lagging: int
Default: 52
Number of periods for the lagging span, by default 52.
offset: int
Default: 26
Number of periods for the offset, by default 26.
lookahead: bool
drops the Chikou Span Column to prevent potential data leak
Returns
results: list[Data]
Serializable results.
provider: None
Provider name.
warnings: Optional[list[Warning_]]
list of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.