No need to add nor change

This commit is contained in:
jackyu66git
2025-06-04 23:49:38 +08:00
parent 872eec8100
commit 8662b633ae
6 changed files with 721 additions and 1203 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ def add_indicators(df):
def calculate_macd(df):
"""计算MACD指标"""
exp1 = df['close'].ewm(span=12, adjust=False).mean()
exp1 = df['close'].ewm(span=10, adjust=False).mean()
exp2 = df['close'].ewm(span=26, adjust=False).mean()
macd = exp1 - exp2
signal = macd.ewm(span=9, adjust=False).mean()