Skip to content

Commit aa302fe

Browse files
committed
docs: improve plot-annotation example
1 parent f2c2e84 commit aa302fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/strategy-callbacks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ Entries will be validated, and won't be passed to the UI if they don't correspon
13851385
}
13861386
)
13871387
elif (start_dt.hour % 2) == 0:
1388-
price = dataframe.loc[dataframe["date"] == start_dt, ["close"]].mean()
1388+
price = dataframe.loc[dataframe["date"] == start_dt, "close"].mean()
13891389
annotations.append(
13901390
{
13911391
"type": "area",

0 commit comments

Comments
 (0)