From 4aae90134cc326eb23fb759bef7c0297ef4b2ad7 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Sun, 28 Apr 2024 02:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20sys=5Fperformance=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8query=E6=97=A5=E6=9C=9F=E4=B8=8D=E5=9C=A8stock?= =?UTF-8?q?=E7=9A=84=E6=9C=89=E6=95=88=E6=97=A5=E6=9C=9F=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E5=86=85=E6=97=B6=EF=BC=8C=E6=8A=9B=E5=87=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu/draw/drawplot/matplotlib_draw.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hikyuu/draw/drawplot/matplotlib_draw.py b/hikyuu/draw/drawplot/matplotlib_draw.py index cd7a747e..8d95910c 100644 --- a/hikyuu/draw/drawplot/matplotlib_draw.py +++ b/hikyuu/draw/drawplot/matplotlib_draw.py @@ -754,6 +754,7 @@ def sys_performance(sys, ref_stk=None): if ref_stk is None: ref_stk = get_stock('sh000300') ref_k = ref_stk.get_kdata(sys.query) + hku_check(len(ref_k) > 0, "The length of ref_k is zero! Maybe The query date is out of the ref-stock range!\n ref_k: {}", ref_k) query = Query(ref_k[0].datetime.start_of_day(), ref_k[-1].datetime.start_of_day() + TimeDelta(1), Query.DAY) ref_k = ref_stk.get_kdata(query)