Add short form for parameters, change default for hyperopt
This commit is contained in:
parent
3df79b8542
commit
8f254031c6
@ -178,15 +178,15 @@ class Arguments(object):
|
||||
type=str,
|
||||
)
|
||||
parser.add_argument(
|
||||
'--enable-position-stacking',
|
||||
help='Allow buying the same pair twice (position stacking)',
|
||||
'--eps', '--enable-position-stacking',
|
||||
help='Allow buying the same pair multiple times (position stacking)',
|
||||
action='store_true',
|
||||
dest='position_stacking',
|
||||
default=False
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'--disable-max-market-positions',
|
||||
'--dmmp', '--disable-max-market-positions',
|
||||
help='Disable applying `max_open_trades` during backtest '
|
||||
'(same as setting `max_open_trades` to a very high number)',
|
||||
action='store_false',
|
||||
|
@ -280,7 +280,7 @@ class Hyperopt(Backtesting):
|
||||
{
|
||||
'stake_amount': self.config['stake_amount'],
|
||||
'processed': processed,
|
||||
'position_stacking': self.config.get('position_stacking', False),
|
||||
'position_stacking': self.config.get('position_stacking', True),
|
||||
}
|
||||
)
|
||||
result_explanation = self.format_results(results)
|
||||
|
Loading…
Reference in New Issue
Block a user