From 8f254031c655fa297aef4eb782aea790d6ba0a44 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 19 Jul 2018 13:19:36 +0200 Subject: [PATCH] Add short form for parameters, change default for hyperopt --- freqtrade/arguments.py | 6 +++--- freqtrade/optimize/hyperopt.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index f315ea05b..16a01396b 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -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', diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 73b74e6ad..addfe19ee 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -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)