From 5a7ca35c6b4c7c2db68a440b65d7ec4c611674e6 Mon Sep 17 00:00:00 2001 From: Yinon Polak Date: Tue, 28 Mar 2023 16:24:31 +0300 Subject: [PATCH] declare class names in FreqaiExampleHybridStrategy --- freqtrade/templates/FreqaiExampleHybridStrategy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/templates/FreqaiExampleHybridStrategy.py b/freqtrade/templates/FreqaiExampleHybridStrategy.py index 0e7113f8c..3f27ee4a1 100644 --- a/freqtrade/templates/FreqaiExampleHybridStrategy.py +++ b/freqtrade/templates/FreqaiExampleHybridStrategy.py @@ -223,6 +223,7 @@ class FreqaiExampleHybridStrategy(IStrategy): :param metadata: metadata of current pair usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"] """ + self.freqai.class_names = ["down", "up"] dataframe['&s-up_or_down'] = np.where(dataframe["close"].shift(-50) > dataframe["close"], 'up', 'down')