markers的时间粒度精确到秒,避免小时级数据出问题

This commit is contained in:
2025-10-19 12:30:21 +08:00
parent 0a3ebc7187
commit b6d4044ce0

View File

@@ -256,7 +256,7 @@ class QuantChart:
if item["TD"] in [9, 13]:
markers.append(
{
"time": item["time"].strftime("%Y-%m-%d"),
"time": item["time"].strftime("%Y-%m-%d %H:%M:%S"),
"position": "above",
"shape": "arrow_down",
"color": "#00FF00",
@@ -266,7 +266,7 @@ class QuantChart:
elif item["TD"] in [-9, -13]:
markers.append(
{
"time": item["time"].strftime("%Y-%m-%d"),
"time": item["time"].strftime("%Y-%m-%d %H:%M:%S"),
"position": "below",
"shape": "arrow_up",
"color": "#FF0000",