CzscSignals

class czsc.traders.CzscSignals(bg: BarGenerator, get_signals: Optional[Callable] = None)[source]

Bases: object

缠中说禅技术分析理论之多级别信号计算

Methods Summary

open_in_browser([width, height])

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

take_snapshot([file_html, width, height])

获取快照

update_signals(bar)

输入基础周期已完成K线,更新信号,更新仓位

Methods Documentation

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

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

take_snapshot(file_html=None, width: str = '1400px', height: str = '580px')[source]

获取快照

Parameters:
  • file_html – 交易快照保存的 html 文件名

  • width – 图表宽度

  • height – 图表高度

Returns:

update_signals(bar: RawBar)[source]

输入基础周期已完成K线,更新信号,更新仓位