MACD使用标准参数

This commit is contained in:
jackyu66git
2025-08-10 19:55:26 +08:00
parent 05942fed8e
commit 285f62f1ab
15 changed files with 1281 additions and 39 deletions
+8
View File
@@ -600,6 +600,14 @@ class ChanKLU:
# 设置指标后更新实时分析
self.update_realtime_analysis()
def cal_macd_state(self):
if self.pre:
pre_macd_slop = self.macd - self.pre.macd
pre_signal_slop = self.signal - self.pre.signal
pre_hist_slop = self.macdhist - self.pre.macdhist
return self.macd_state
def get_feature_data(self):
features = dict()
features['klu_close'] = self.close