Change app and other py
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user