CZSC

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

Bases: object

Attributes Summary

finished_bis

返回当下基本确认完成的笔列表

fx_list

返回当下基本确认完成的笔列表

last_bi_extend

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

ubi_fxs

返回当下基本确认完成的笔列表

Methods Summary

open_in_browser([width, height])

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

to_echarts([width, height, bs])

绘制K线分析图

update(bar)

更新分析结果

Attributes Documentation

finished_bis

返回当下基本确认完成的笔列表

fx_list

返回当下基本确认完成的笔列表

last_bi_extend

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

ubi_fxs

返回当下基本确认完成的笔列表

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=None)[source]

绘制K线分析图

Parameters:
  • width – 宽

  • height – 高

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

Returns:

update(bar: RawBar)[source]

更新分析结果

Parameters:

bar – 单根K线对象