From 266eaa9a63588307010d6543593dd86399b28950 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Tue, 1 May 2018 14:38:24 -0700 Subject: [PATCH] slight aejustements --- user_data/strategies/Simple.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user_data/strategies/Simple.py b/user_data/strategies/Simple.py index f76ad9ab6..ebd7ff75d 100644 --- a/user_data/strategies/Simple.py +++ b/user_data/strategies/Simple.py @@ -49,6 +49,7 @@ class Simple(IStrategy): bollinger = qtpylib.bollinger_bands(dataframe['close'], window=12, stds=2) dataframe['bb_lowerband'] = bollinger['lower'] dataframe['bb_upperband'] = bollinger['upper'] + dataframe['bb_middleband'] = bollinger['mid'] dataframe['tema'] = ta.TEMA(dataframe, timeperiod=9) dataframe['adx'] = ta.ADX(dataframe) @@ -69,12 +70,12 @@ class Simple(IStrategy): return dataframe def populate_sell_trend(self, dataframe: DataFrame) -> DataFrame: - - #different strategy used for sell points, due to be able to duplicate it to 100% + # different strategy used for sell points, due to be able to duplicate it to 100% dataframe.loc[ ( ( (dataframe['adx'] > 70) & + (dataframe['tema'] > dataframe['bb_middleband']) & (dataframe['tema'] < dataframe['tema'].shift(1)) ) ),