添加分型强弱计算,可以直接跑服务了
This commit is contained in:
+4
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user