From b301ad22c9f88f617a99c6a507fa585a1c34715a Mon Sep 17 00:00:00 2001 From: jackyu66git Date: Sat, 12 Sep 2026 02:15:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pipeline=20MACD=20=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=B8=BA=E6=A0=87=E5=87=86=2012/26/9?= =?UTF-8?q?=EF=BC=88=E4=B8=8E=20web/=E4=BA=A4=E6=98=93=E6=89=80=E4=B8=80?= =?UTF-8?q?=E8=87=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chanlun/pipeline/builders/indicators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chanlun/pipeline/builders/indicators.py b/chanlun/pipeline/builders/indicators.py index 65dc2d1..d0209f8 100644 --- a/chanlun/pipeline/builders/indicators.py +++ b/chanlun/pipeline/builders/indicators.py @@ -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)