improve deprecation note

This commit is contained in:
robcaulk 2023-01-09 20:15:03 +01:00
parent a61274ae18
commit 93aff9325e

View File

@ -1351,8 +1351,11 @@ class FreqaiDataKitchen:
# the user is using the populate_any_indicators functions which is deprecated # the user is using the populate_any_indicators functions which is deprecated
logger.warning("DEPRECATION WARNING: " logger.warning("DEPRECATION WARNING: "
"You are using the deprecated populate_any_indicators function. " "You are using the deprecated populate_any_indicators function. "
"Please update your strategy to use " "This function will raise an error on March 1 2023. "
"the new feature_engineering functions.") "Please update your strategy by using "
"the new feature_engineering functions. See \n"
"https://www.freqtrade.io/en/latest/freqai-feature-engineering/"
"for details.")
df = self.use_strategy_to_populate_indicators_old_version( df = self.use_strategy_to_populate_indicators_old_version(
strategy, corr_dataframes, base_dataframes, pair, strategy, corr_dataframes, base_dataframes, pair,
@ -1395,7 +1398,6 @@ class FreqaiDataKitchen:
corr_dataframes[p][tf] = None corr_dataframes[p][tf] = None
else: else:
dataframe = base_dataframes[self.config["timeframe"]].copy() dataframe = base_dataframes[self.config["timeframe"]].copy()
# dataframe = strategy.dp.get_pair_dataframe(pair, self.config["timeframe"])
sgi = False sgi = False
for tf in tfs: for tf in tfs: