Fix docs typo for CategoryParameter

closes #4852
This commit is contained in:
Matthias 2021-05-02 19:21:26 +02:00
parent 6f8225c49e
commit 99e1ef9b4a
1 changed files with 3 additions and 3 deletions

View File

@ -251,9 +251,9 @@ We continue to define hyperoptable parameters:
class MyAwesomeStrategy(IStrategy):
buy_adx = IntParameter(20, 40, default=30)
buy_rsi = IntParameter(20, 40, default=30)
buy_adx_enabled = CategoricalParameter([True, False]),
buy_rsi_enabled = CategoricalParameter([True, False]),
buy_trigger = CategoricalParameter(['bb_lower', 'macd_cross_signal']),
buy_adx_enabled = CategoricalParameter([True, False])
buy_rsi_enabled = CategoricalParameter([True, False])
buy_trigger = CategoricalParameter(['bb_lower', 'macd_cross_signal'])
```
Above definition says: I have five parameters I want to randomly combine to find the best combination.