Skip to content

Commit

Permalink
0.6.1 正式发布
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Jan 23, 2021
1 parent e1b5405 commit c813bb1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit c813bb1

Please sign in to comment.