From c813bb101234e90f8751fc82631da5096063dd6c Mon Sep 17 00:00:00 2001 From: zengbin93 Date: Sat, 23 Jan 2021 11:07:48 +0800 Subject: [PATCH] =?UTF-8?q?0.6.1=20=E6=AD=A3=E5=BC=8F=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_plot.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/test_plot.py b/test/test_plot.py index 430425593..5e9a9b809 100644 --- a/test/test_plot.py +++ b/test/test_plot.py @@ -31,14 +31,14 @@ def test_kline_pro(): for _, row in kline.iterrows()] ka = CZSC(bars, freq="日线") - bs = [] - for x in ka.bi_list: - if x.fx_b.mark == Mark.D: - mark = "buy" - else: - mark = "sell" - bs.append({"dt": x.dt, "mark": mark, mark: x.fx_b.fx}) - - chart = plot.kline_pro(ka.bars_ubi, fx=ka.fx_list, bi=ka.bi_list, xd=ka.xd_list, bs=bs) - chart.render() + # bs = [] + # for x in ka.bi_list: + # if x.fx_b.mark == Mark.D: + # mark = "buy" + # else: + # mark = "sell" + # bs.append({"dt": x.f, "mark": mark, mark: x.fx_b.fx}) + # + # chart = plot.kline_pro(ka.bars_ubi, fx=ka.fx_list, bi=ka.bi_list, xd=ka.xd_list, bs=bs) + # chart.render()