From f05ceda071e33f413996dad81b1a8500d06f168c Mon Sep 17 00:00:00 2001 From: aszerW Date: Sun, 19 Oct 2025 12:08:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20lightweight-charts=3D2.1?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=8C=20https://github.com/lo?= =?UTF-8?q?uisnw01/lightweight-charts-python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart.py b/chart.py index e978f2c..7505b60 100644 --- a/chart.py +++ b/chart.py @@ -3,7 +3,7 @@ import pandas as pd from loguru import logger import talib as ta import numpy as np -from lightweight_charts import Chart +from lightweight_charts import Chart # lightweight-charts==2.1 import random @@ -394,7 +394,7 @@ class QuantChart: self.update_legend( chart=chart, key="Crosshair Price Profit%", - text=f"Crosshair Price Profit%: {profit:.2f}%", + text=f"crosshair_price_profit%: {profit:.2f}%", ) chart.win.handlers["crosshair_price"] = lambda p: on_crosshair_price(p)