ConeDecorator
- class qf_lib.plotting.decorators.cone_decorator.ConeDecorator(series: QFSeries, live_start_date: datetime, cone_stds: Union[Sequence[Union[int, float]], float, int] = (1, 2), colors_alpha: float = 0.25, key: Optional[str] = None)[source]
Bases:
ChartDecorator
Puts cone on top of the timeseries starting from given date.
- Parameters:
series (QFSeries) – series that is going to be decorated by the cone
live_start_date (datetime) – start date of the cone
cone_stds (Sequence[Union[float, int], float, int) – defines the size of the cones in standard deviations
colors_alpha (float) – sets the level of transparency of the cone
key (str) – see ChartDecorator.key.__init__#key
Methods:
decorate
(chart)Modifies the axes object taken from the chart (e.g.