Changed max_open_trades default range for optimization

This commit is contained in:
Antonio Della Fortuna 2023-01-08 12:48:36 +01:00
parent f77dffc951
commit 10d8b016e4
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ class MyAwesomeStrategy(IStrategy):
# Define a custom max_open_trades space
def trades_space(self) -> List[Dimension]:
return [
Integer(1, 10, name='max_open_trades'),
Integer(-1, 10, name='max_open_trades'),
]
```

View File

@ -198,7 +198,7 @@ class IHyperOpt(ABC):
You may override it in your custom Hyperopt class.
"""
return [
Integer(1, 10, name='max_open_trades'),
Integer(-1, 10, name='max_open_trades'),
]
# This is needed for proper unpickling the class attribute timeframe