添加分型强弱计算,可以直接跑服务了

This commit is contained in:
Porter
2025-05-24 22:42:35 +08:00
parent a9d24233b0
commit cdc40f795c
13 changed files with 365 additions and 13 deletions
+4 -2
View File
@@ -221,10 +221,12 @@ def analyze_chan(df):
for klc in klc_list:
if hasattr(klc, 'klc_fx_type') and klc.klc_fx_type != Chan_KLC_FX.UNKNOWN:
# 计算分型强度
fx_strength = klc.calculate_fx_strength()
#fx_strength = klc.calculate_fx_strength()
fx_strength = klc.cal_fx_strength()
fx_strength_level = klc.get_fx_strength_level()
is_strong_fx = klc.is_strong_fx()
if fx_strength < 1:
fx_strength = 0
klc_fx_info.append({
'time': klc.end_time,
'price': klc.low if klc.fx == Chan_FX_TYPE.BOTTOM else klc.high,