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

This commit is contained in:
jackyu66git
2026-09-12 02:15:11 +08:00
parent 2cd50f1e01
commit b301ad22c9
+2 -2
View File
@@ -60,8 +60,8 @@ class IndicatorsBuilderMixin:
30 多列的开销比全部 TA 计算本身还大(2001 行实测 TA 合计 2.5ms
逐列赋值 3.6ms)。增量路径每根都要走一遍,这笔开销是白付的。
"""
fast = 26
slow = 52
fast = 12
slow = 26
period = 9
macd = ta.MACD(df, fastperiod=fast, slowperiod=slow, signalperiod=period)
bb365 = ta.BBANDS(df, timeperiod=365, nbdevup=3.0, nbdevdn=3.0, matype=0)