max_open_trades should be an integer

Max open trades will be always an integer in the strategy (-1 for infinity), but in the config -1 will be parsed as infinity
This commit is contained in:
Antonio Della Fortuna
2023-01-04 16:09:27 +01:00
parent 1c5e172683
commit f2fa476dc6
8 changed files with 27 additions and 16 deletions

View File

@@ -55,7 +55,7 @@ class IStrategy(ABC, HyperStrategyMixin):
stoploss: float
# max open trades for the strategy
max_open_trades: int | float
max_open_trades: int
# trailing stoploss
trailing_stop: bool = False