*BREAKING CHANGE* remove unnecessary arguments from populate_any_indicators(), accommodate tests

This commit is contained in:
robcaulk
2022-07-31 17:05:29 +02:00
parent 153336d424
commit d830105605
5 changed files with 35 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ class freqai_test_multimodel_strat(IStrategy):
return informative_pairs
def populate_any_indicators(
self, metadata, pair, df, tf, informative=None, coin="", set_generalized_indicators=False
self, pair, df, tf, informative=None, set_generalized_indicators=False
):
"""
Function designed to automatically generate, name and merge features
@@ -79,6 +79,8 @@ class freqai_test_multimodel_strat(IStrategy):
:coin: the name of the coin which will modify the feature names.
"""
coin = pair.split('/')[0]
with self.freqai.lock:
if informative is None:
informative = self.dp.get_pair_dataframe(pair, tf)

View File

@@ -62,7 +62,7 @@ class freqai_test_strat(IStrategy):
return informative_pairs
def populate_any_indicators(
self, metadata, pair, df, tf, informative=None, coin="", set_generalized_indicators=False
self, pair, df, tf, informative=None, set_generalized_indicators=False
):
"""
Function designed to automatically generate, name and merge features
@@ -79,6 +79,8 @@ class freqai_test_strat(IStrategy):
:coin: the name of the coin which will modify the feature names.
"""
coin = pair.split('/')[0]
with self.freqai.lock:
if informative is None:
informative = self.dp.get_pair_dataframe(pair, tf)