declare class names in FreqaiExampleHybridStrategy

This commit is contained in:
Yinon Polak 2023-03-28 16:24:31 +03:00
parent 077a947972
commit 5a7ca35c6b

View File

@ -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')