From aa302fe531e6b0bcad3cbd59f9ab3a2c2f7100f6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 4 Feb 2026 07:11:39 +0100 Subject: [PATCH] docs: improve plot-annotation example --- docs/strategy-callbacks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 075998b4b..99a6e3911 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -1385,7 +1385,7 @@ Entries will be validated, and won't be passed to the UI if they don't correspon } ) elif (start_dt.hour % 2) == 0: - price = dataframe.loc[dataframe["date"] == start_dt, ["close"]].mean() + price = dataframe.loc[dataframe["date"] == start_dt, "close"].mean() annotations.append( { "type": "area",