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:
@@ -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
|
||||
|
Reference in New Issue
Block a user