基本上完成了高低点的识别

This commit is contained in:
jackyu66git
2025-09-20 02:49:54 +08:00
parent 4766e38125
commit 272e2522ea
4 changed files with 38 additions and 70 deletions
+3 -3
View File
@@ -257,9 +257,9 @@ def get_a_stock_kl_data(symbol, timeframe, limit=1000, start_time=None, end_time
return None
def add_indicators(df):
fast = 12
slow = 26
period = 9
fast = 12*1
slow = 26*1
period = 9*1
macd = ta.MACD(df, fastperiod=fast, slowperiod=slow, signalperiod=period)
df['macd'] = macd['macd']