From 542adad583d9a01e0396d4e5b2ddca6dc8b0f8dd Mon Sep 17 00:00:00 2001 From: jackyu66git Date: Sat, 12 Sep 2026 02:15:14 +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 900175e..7feeab5 100644 --- a/chanlun/pipeline/builders/indicators.py +++ b/chanlun/pipeline/builders/indicators.py @@ -55,8 +55,8 @@ class IndicatorsBuilderMixin: return None def add_indicators(self, df): - 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)