From 893738d6f0695b6fa6d6e4bf0434cc91e118bb5b Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sat, 28 Oct 2017 16:43:34 +0300 Subject: [PATCH] add MACD to analyze --- freqtrade/analyze.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index 20fa67ca3..4dba24851 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -48,7 +48,10 @@ def populate_indicators(dataframe: DataFrame) -> DataFrame: dataframe['ema5'] = ta.EMA(dataframe, timeperiod=5) dataframe['ema10'] = ta.EMA(dataframe, timeperiod=10) dataframe['ao'] = awesome_oscillator(dataframe) - + macd = ta.MACD(dataframe) + dataframe['macd'] = macd['macd'] + dataframe['macdsignal'] = macd['macdsignal'] + dataframe['macdhist'] = macd['macdhist'] return dataframe