From ad8ff10a05912d1075579060588e7e9328d24af5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 30 May 2022 06:32:35 +0200 Subject: [PATCH] Minor doc changes --- docs/strategy-callbacks.md | 3 +++ freqtrade/strategy/hyper.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 06e7152aa..e1e57a1f3 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -46,6 +46,9 @@ class AwesomeStrategy(IStrategy): self.cust_remote_data = requests.get('https://some_remote_source.example.com') ``` + +During hyperopt, this runs only once at startup. + ## Bot loop start A simple callback which is called once at the start of every bot throttling iteration (roughly every 5 seconds, unless configured differently). diff --git a/freqtrade/strategy/hyper.py b/freqtrade/strategy/hyper.py index c4119173b..622ad7718 100644 --- a/freqtrade/strategy/hyper.py +++ b/freqtrade/strategy/hyper.py @@ -86,7 +86,10 @@ class HyperStrategyMixin: return params def ft_load_hyper_params_from_file(self) -> None: - """ Load Parameters from parameter file""" + """ + Load Parameters from parameter file + Should/must run before config values are loaded in strategy_resolver. + """ if self._ft_params_from_file: # Set parameters from Hyperopt results file params = self._ft_params_from_file