fix: pipeline MACD 参数统一为标准 12/26/9(与 web/交易所一致)

This commit is contained in:
jackyu66git
2026-09-12 02:15:24 +08:00
parent 8413aa1d17
commit cae126fafc
+2 -2
View File
@@ -73,8 +73,8 @@ class TF_DF():
return self.klc_list[-2] return self.klc_list[-2]
return None return None
def add_indicators(self, df): def add_indicators(self, df):
fast = 26 fast = 12
slow = 52 slow = 26
period = 9 period = 9
macd = ta.MACD(df, fastperiod=fast, slowperiod=slow, signalperiod=period) macd = ta.MACD(df, fastperiod=fast, slowperiod=slow, signalperiod=period)
bb365 = ta.BBANDS(df, timeperiod=365, nbdevup=3.0, nbdevdn=3.0, matype=0) bb365 = ta.BBANDS(df, timeperiod=365, nbdevup=3.0, nbdevdn=3.0, matype=0)