From d94c0039eb454d2f34fbb74b25d707e24cdc302e Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 25 Oct 2022 20:20:51 +0200 Subject: [PATCH] Add missing import to hyperopt docs --- docs/advanced-hyperopt.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/advanced-hyperopt.md b/docs/advanced-hyperopt.md index 9933628d1..d80db1e62 100644 --- a/docs/advanced-hyperopt.md +++ b/docs/advanced-hyperopt.md @@ -78,6 +78,8 @@ This function needs to return a floating point number (`float`). Smaller numbers To override a pre-defined space (`roi_space`, `generate_roi_table`, `stoploss_space`, `trailing_space`), define a nested class called Hyperopt and define the required spaces as follows: ```python +from freqtrade.optimize.space import Integer, SKDecimal + class MyAwesomeStrategy(IStrategy): class HyperOpt: # Define a custom stoploss space.