Add short form for parameters, change default for hyperopt

This commit is contained in:
Matthias 2018-07-19 13:19:36 +02:00
parent 3df79b8542
commit 8f254031c6
2 changed files with 4 additions and 4 deletions

View File

@ -178,15 +178,15 @@ class Arguments(object):
type=str, type=str,
) )
parser.add_argument( parser.add_argument(
'--enable-position-stacking', '--eps', '--enable-position-stacking',
help='Allow buying the same pair twice (position stacking)', help='Allow buying the same pair multiple times (position stacking)',
action='store_true', action='store_true',
dest='position_stacking', dest='position_stacking',
default=False default=False
) )
parser.add_argument( parser.add_argument(
'--disable-max-market-positions', '--dmmp', '--disable-max-market-positions',
help='Disable applying `max_open_trades` during backtest ' help='Disable applying `max_open_trades` during backtest '
'(same as setting `max_open_trades` to a very high number)', '(same as setting `max_open_trades` to a very high number)',
action='store_false', action='store_false',

View File

@ -280,7 +280,7 @@ class Hyperopt(Backtesting):
{ {
'stake_amount': self.config['stake_amount'], 'stake_amount': self.config['stake_amount'],
'processed': processed, 'processed': processed,
'position_stacking': self.config.get('position_stacking', False), 'position_stacking': self.config.get('position_stacking', True),
} }
) )
result_explanation = self.format_results(results) result_explanation = self.format_results(results)