From 2c0a02918757b8cd40434796f7c86699d5cd1cc6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 5 Feb 2026 07:09:07 +0100 Subject: [PATCH] feat: add markpoint rotate support closes #12787 --- docs/strategy-callbacks.md | 1 + freqtrade/ft_types/plot_annotation_type.py | 1 + 2 files changed, 2 insertions(+) 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