From 729bea2d8e41c896d953c55aba770b961088bab2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 03:02:12 +0000 Subject: [PATCH 1/4] chore(deps): bump cryptography from 45.0.7 to 46.0.1 Bumps [cryptography](https://github.com/pyca/cryptography) from 45.0.7 to 46.0.1. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/45.0.7...46.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-version: 46.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a40209293..6ab01aed1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ ta-lib==0.6.7 technical==1.5.3 ccxt==4.5.5 -cryptography==45.0.7 +cryptography==46.0.1 aiohttp==3.12.15 SQLAlchemy==2.0.43 python-telegram-bot==22.4 From 99401f9d696706a003b2a11a33e4bfb94ff83b4a Mon Sep 17 00:00:00 2001 From: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com> Date: Tue, 23 Sep 2025 03:13:37 +0000 Subject: [PATCH 2/4] chore: update pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98dd46f27..2d4a8e5ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: # stages: [push] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.18.1" + rev: "v1.18.2" hooks: - id: mypy exclude: build_helpers @@ -44,7 +44,7 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.13.0' + rev: 'v0.13.1' hooks: - id: ruff - id: ruff-format From da12071d8fba1542a925ad088ac46a0bfa003f08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 03:02:36 +0000 Subject: [PATCH 3/4] chore(deps-dev): bump mypy from 1.18.1 to 1.18.2 Bumps [mypy](https://github.com/python/mypy) from 1.18.1 to 1.18.2. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.18.1...v1.18.2) --- updated-dependencies: - dependency-name: mypy dependency-version: 1.18.2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index cdb43f068..5a2c3c4f4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,7 +7,7 @@ -r docs/requirements-docs.txt ruff==0.13.1 -mypy==1.18.1 +mypy==1.18.2 pre-commit==4.3.0 pytest==8.4.2 pytest-asyncio==1.2.0 From 9aeb2eaabd18194f9ad78013f14192b3cfe26665 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 24 Sep 2025 18:13:42 +0200 Subject: [PATCH 4/4] feat: add z-level to annotations --- docs/strategy-callbacks.md | 3 ++- freqtrade/ft_types/plot_annotation_type.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 8858afc84..86219c0d9 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -1247,7 +1247,6 @@ class AwesomeStrategy(IStrategy): You can learn more about storing data on the [Storing custom trade data](strategy-advanced.md#storing-information-persistent) section. Please keep in mind that this is considered advanced usage, and should be used with care. - ## Plot annotations callback The plot annotations callback is called whenever freqUI requests data to display a chart. @@ -1266,6 +1265,7 @@ The full object looks like this: "y_start": 94000.2, // Price / y axis value "y_end": 98000, // Price / y axis value "color": "", + "z_level": 5, // z-level, higher values are drawn on top of lower values. Positions relative to the Chart elements need to be set in freqUI. "label": "some label" } ``` @@ -1357,6 +1357,7 @@ Entries will be validated, and won't be passed to the UI if they don't correspon "y_end": price * 1.01, "y_start": price * 0.99, "color": "rgba(0, 255, 0, 0.4)", + "z_level": 5, } ) diff --git a/freqtrade/ft_types/plot_annotation_type.py b/freqtrade/ft_types/plot_annotation_type.py index 4da4102c4..e95586a70 100644 --- a/freqtrade/ft_types/plot_annotation_type.py +++ b/freqtrade/ft_types/plot_annotation_type.py @@ -13,6 +13,7 @@ class AnnotationType(TypedDict, total=False): y_end: float color: str label: str + z_level: int AnnotationTypeTA = TypeAdapter(AnnotationType)