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,
|
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',
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user