mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add missing import to hyperopt docs
This commit is contained in:
parent
1ef38f137d
commit
d94c0039eb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user