Fix hyperopt position stacking

This commit is contained in:
hroff-1902 2019-09-25 03:41:22 +03:00
parent a75fb3d4be
commit 665e0570ae

View File

@ -90,7 +90,7 @@ class Hyperopt:
else: else:
logger.debug('Ignoring max_open_trades (--disable-max-market-positions was used) ...') logger.debug('Ignoring max_open_trades (--disable-max-market-positions was used) ...')
self.max_open_trades = 0 self.max_open_trades = 0
self.position_stacking = self.config.get('position_stacking', False), self.position_stacking = self.config.get('position_stacking', False)
if self.has_space('sell'): if self.has_space('sell'):
# Make sure experimental is enabled # Make sure experimental is enabled