From ff286bd80cd82fa079ec51cc0592ba2f986c2ceb Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Nov 2020 16:32:44 +0100 Subject: [PATCH] Slightly clarify hyperopt docs --- docs/hyperopt.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/hyperopt.md b/docs/hyperopt.md index fc7a0dd93..c42889831 100644 --- a/docs/hyperopt.md +++ b/docs/hyperopt.md @@ -173,6 +173,11 @@ one we call `trigger` and use it to decide which buy trigger we want to use. So let's write the buy strategy using these values: ```python + @staticmethod + def buy_strategy_generator(params: Dict[str, Any]) -> Callable: + """ + Define the buy strategy parameters to be used by Hyperopt. + """ def populate_buy_trend(dataframe: DataFrame) -> DataFrame: conditions = [] # GUARDS AND TRENDS