Fix warning for max_open_trades when edge is enabled

This commit is contained in:
Gianluca Puglia 2019-01-06 13:48:27 +01:00
parent 13800701ce
commit 87cbff5d0e
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Edge():
# checking max_open_trades. it should be -1 as with Edge
# the number of trades is determined by position size
if self.config['max_open_trades'] != -1:
if self.config['max_open_trades'] != float('inf'):
logger.critical('max_open_trades should be -1 in config !')
if self.config['stake_amount'] != constants.UNLIMITED_STAKE_AMOUNT: