MACD使用标准参数
This commit is contained in:
+2
-2
@@ -255,8 +255,8 @@ def get_a_stock_kl_data(symbol, timeframe, limit=1000, start_time=None, end_time
|
||||
return None
|
||||
|
||||
def add_indicators(df):
|
||||
fast = 24
|
||||
slow = 52
|
||||
fast = 12
|
||||
slow = 26
|
||||
period = 9
|
||||
macd = ta.MACD(df, fastperiod=fast, slowperiod=slow, signalperiod=period)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user