Merge pull request #2308 from hroff-1902/hyperopt-config

Allow use of config in custom hyperopt methods
This commit is contained in:
Matthias
2019-09-28 10:36:46 +02:00
committed by GitHub
3 changed files with 8 additions and 5 deletions

View File

@@ -36,6 +36,12 @@ class IHyperOpt(ABC):
"""
ticker_interval: str
def __init__(self, config: dict) -> None:
self.config = config
# Assign ticker_interval to be used in hyperopt
IHyperOpt.ticker_interval = str(config['ticker_interval'])
@staticmethod
@abstractmethod
def populate_indicators(dataframe: DataFrame, metadata: dict) -> DataFrame: