mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
Don't load fallback methods for autohyperopt
This commit is contained in:
parent
e70a742005
commit
4ab03f7e37
|
@ -102,7 +102,8 @@ class Hyperopt:
|
||||||
self.num_epochs_saved = 0
|
self.num_epochs_saved = 0
|
||||||
self.current_best_epoch: Optional[Dict[str, Any]] = None
|
self.current_best_epoch: Optional[Dict[str, Any]] = None
|
||||||
|
|
||||||
# Populate functions here (hasattr is slow so should not be run during "regular" operations)
|
if not self.auto_hyperopt:
|
||||||
|
# Populate "fallback" functions here (hasattr is slow so should not be run during "regular" operations)
|
||||||
if hasattr(self.custom_hyperopt, 'populate_indicators'):
|
if hasattr(self.custom_hyperopt, 'populate_indicators'):
|
||||||
self.backtesting.strategy.advise_indicators = ( # type: ignore
|
self.backtesting.strategy.advise_indicators = ( # type: ignore
|
||||||
self.custom_hyperopt.populate_indicators) # type: ignore
|
self.custom_hyperopt.populate_indicators) # type: ignore
|
||||||
|
|
Loading…
Reference in New Issue
Block a user