diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 99a6e3911..9e1ca7d80 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -1304,6 +1304,7 @@ Currently two types of annotations are supported, `area` and `line`. "label": "some label", "size": 2, // Optional, line width in pixels. Defaults to 10 "shape": "circle", // Optional, can be "circle", "rect", "roundRect", "triangle", "pin", "arrow", "none". + "rotate": 0, // Optional, rotation of the shape/symbol in degrees. Defaults to 0 } ``` diff --git a/freqtrade/ft_types/plot_annotation_type.py b/freqtrade/ft_types/plot_annotation_type.py index 13247b266..331003ea2 100644 --- a/freqtrade/ft_types/plot_annotation_type.py +++ b/freqtrade/ft_types/plot_annotation_type.py @@ -34,6 +34,7 @@ class PointAnnotationType(_BaseAnnotationType, total=False): y: float size: int shape: Literal["circle", "rect", "roundRect", "triangle", "pin", "arrow", "none"] + rotate: int AnnotationType = AreaAnnotationType | LineAnnotationType | PointAnnotationType