diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 7c0562d3f..21f364a5a 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -176,6 +176,15 @@ def __evaluate(data): """ strategy = urlsafe_b64decode(data['content']).decode('utf-8') + + # comment out hyper opt references, they are no supported here + # due to lambda size limitations + strategy = "\n".join( + list( + map( + lambda x: "#{} # this version does not support hyperopt!".format(x) if "hyperopt" in x else x, + strategy.split("\n")))) + # print("loaded strategy") # print(strategy) # try to load the strategy