CzscAdvancedTrader

class czsc.traders.advanced.CzscAdvancedTrader(*args, **kwargs)[source]

Bases: object

缠中说禅技术分析理论之多级别联立交易决策类(支持分批开平仓 / 支持从任意周期开始交易)

Attributes Summary

results

汇集回测相关结果

Methods Summary

open_in_browser([width, height])

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

take_snapshot([file_html, width, height])

获取快照

update(bar)

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

Attributes Documentation

results

汇集回测相关结果

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(bar: RawBar)[source]

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