Change app and other py

This commit is contained in:
jackyu66git
2025-04-25 11:00:20 +08:00
parent 63852efe47
commit 761d73cdac
9 changed files with 65 additions and 55 deletions
+3 -2
View File
@@ -35,18 +35,19 @@ class ChanKLC():
#print(self.start_time, klc_fx_type, self.get_feature_data()['klu_macd'], self.get_feature_data()['klu_macdhist'], self.get_feature_data()['klu_rsi'])
if self.check_klc_fx_type(klc_fx_type):
self.klc_fx_type = klc_fx_type
self.klc_fx_type = klc_fx_type
def check_klc_fx_type(self, klc_fx_type):
if klc_fx_type == Chan_KLC_FX.BOTTOM1:
features = self.cal_klu_features()
if features['klu_macd'] > 0:
print(self.start_time, klc_fx_type, features['klu_macd'])
#print(self.start_time, klc_fx_type, features['klu_macd'])
return False
else:
return True
elif klc_fx_type == Chan_KLC_FX.TOP1:
features = self.get_feature_data()
if features['klu_macd'] < 0:
print(self.start_time, klc_fx_type, features['klu_macd'])
#print(self.start_time, klc_fx_type, features['klu_macd'])
return False
else:
return True