CZSC

class czsc.analyze.CZSC(bars: List[RawBar], get_signals=None, max_bi_num=50)[source]

Bases: object

Attributes Summary

finished_bis

已完成的笔

fx_list

分型列表,包括 bars_ubi 中的分型

last_bi_extend

判断最后一笔是否在延伸中,True 表示延伸中

ubi

Unfinished Bi,未完成的笔

ubi_fxs

bars_ubi 中的分型

Methods Summary

open_in_browser([width, height])

直接在浏览器中打开分析结果

to_echarts([width, height, bs])

绘制K线分析图

to_plotly()

使用 plotly 绘制K线分析图

update(bar)

更新分析结果

Attributes Documentation

finished_bis

已完成的笔

fx_list

分型列表,包括 bars_ubi 中的分型

last_bi_extend

判断最后一笔是否在延伸中,True 表示延伸中

ubi

Unfinished Bi,未完成的笔

ubi_fxs

bars_ubi 中的分型

Methods Documentation

open_in_browser(width: str = '1400px', height: str = '580px')[source]

直接在浏览器中打开分析结果

Parameters:
  • width – 图表宽度

  • height – 图表高度

Returns:

to_echarts(width: str = '1400px', height: str = '580px', bs=[])[source]

绘制K线分析图

Parameters:
  • width – 宽

  • height – 高

  • bs – 交易标记,默认为空

Returns:

to_plotly()[source]

使用 plotly 绘制K线分析图

update(bar: RawBar)[source]

更新分析结果

Parameters:

bar – 单根K线对象