添加k线动能理论第一部分

This commit is contained in:
jackyu66git
2025-07-25 01:22:53 +08:00
parent 15773ac457
commit b843e30ed8
4 changed files with 19 additions and 8 deletions
+3 -3
View File
@@ -255,9 +255,9 @@ def get_a_stock_kl_data(symbol, timeframe, limit=1000, start_time=None, end_time
return None
def add_indicators(df):
fast = 8
slow = 16
period = 6
fast = 12
slow = 26
period = 9
macd = ta.MACD(df, fastperiod=fast, slowperiod=slow, signalperiod=period)
df['macd'] = macd['macd']