添加k线动能理论第一部分
This commit is contained in:
+3
-3
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user