def use_kline_analyze(): kline = get_kline(symbol="000001.XSHG", end_date="20200616", freq="D", count=5000) # 输入K线即完成分析 ka = KlineAnalyze(kline, name="日线", min_bi_k=5, max_raw_len=10000, verbose=False) # 查看结果 print("分型识别结果:", ka.fx_list[-3:]) print("笔识别结果:", ka.bi_list[-3:]) print("线段识别结果:", ka.xd_list[-3:]) # 用图片或者HTML可视化 ka.to_image("test.png") ka.to_html("test.html")
def use_kline_analyze(): kline = get_kline(symbol="000001.XSHG", end_date="20200616", freq="D", count=5000) # 输入K线即完成分析 ka = KlineAnalyze(kline, name="日线") # 查看结果 print("分型识别结果:", ka.fx[-3:]) print("笔识别结果:", ka.bi[-3:]) print("线段识别结果:", ka.xd[-3:]) print("中枢识别结果:", ka.zs[-1]) # 用图片或者HTML可视化 ka.to_image("test.png") ka.to_html("test.html")