From 3c2fbf428b62e9f2e9c4dfe13b3e625cb2618472 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 7 Jun 2021 20:54:46 +0200 Subject: [PATCH] Fix GodStra closes #198 --- user_data/strategies/GodStra.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/user_data/strategies/GodStra.py b/user_data/strategies/GodStra.py index 9dcf7a5..ecd7878 100644 --- a/user_data/strategies/GodStra.py +++ b/user_data/strategies/GodStra.py @@ -75,19 +75,20 @@ class GodStra(IStrategy): timeframe = '12h' print('Add {\n\t"method": "AgeFilter",\n\t"min_days_listed": 30\n},\n to your pairlists in config (Under StaticPairList)') - def dna_size(dct: dict): + def dna_size(self, dct: dict): def int_from_str(st: str): str_int = ''.join([d for d in st if d.isdigit()]) if str_int: return int(str_int) - return -1 # in case if the parameter somehow doesn't have index + return -1 # in case if the parameter somehow doesn't have index return len({int_from_str(digit) for digit in dct.keys()}) def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Add all ta features dataframe = dropna(dataframe) dataframe = add_all_ta_features( - dataframe, open="open", high="high", low="low", close="close", volume="volume", fillna=True) + dataframe, open="open", high="high", low="low", close="close", volume="volume", + fillna=True) # dataframe.to_csv("df.csv", index=True) return dataframe