From 05933f9e263580aef8d89d3e2fa6a8b9c905409b Mon Sep 17 00:00:00 2001 From: OtenMoten <32872932+OtenMoten@users.noreply.github.com> Date: Tue, 23 Feb 2021 20:32:06 +0100 Subject: [PATCH] Update user_data/strategies/Swing-High-To-Sky.py Jep, very good. Co-authored-by: Matthias --- user_data/strategies/Swing-High-To-Sky.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user_data/strategies/Swing-High-To-Sky.py b/user_data/strategies/Swing-High-To-Sky.py index 0d7ab06..a9491c5 100644 --- a/user_data/strategies/Swing-High-To-Sky.py +++ b/user_data/strategies/Swing-High-To-Sky.py @@ -44,7 +44,8 @@ class SwingHighToSky(IStrategy): dataframe['macdsignal'] = macd['macdsignal'] dataframe['macdhist'] = macd['macdhist'] - dataframe['cci'] = ta.CCI(dataframe) + dataframe['cci-buy'] = ta.CCI(dataframe, timeperiod=xx) + dataframe['cci-sell'] = ta.CCI(dataframe, timeperiod=xx-sell) return dataframe @@ -68,4 +69,4 @@ class SwingHighToSky(IStrategy): ), 'sell'] = 1 - return dataframe \ No newline at end of file + return dataframe