Fix docs for custom hyperopt space

This commit is contained in:
Matthias 2021-09-06 19:54:34 +02:00
parent 6bd495a32a
commit 10d0987f49

View File

@ -80,7 +80,7 @@ To override a pre-defined space (`roi_space`, `generate_roi_table`, `stoploss_sp
class MyAwesomeStrategy(IStrategy):
class HyperOpt:
# Define a custom stoploss space.
def stoploss_space(self):
def stoploss_space():
return [SKDecimal(-0.05, -0.01, decimals=3, name='stoploss')]
```