From ac36ba65926f6ee25c7960113ed1fbd9bd7dcd58 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 15 Jun 2023 20:12:11 +0200 Subject: [PATCH] Improve arguments file formatting --- freqtrade/commands/arguments.py | 16 ++++++---------- freqtrade/commands/strategy_utils_commands.py | 0 2 files changed, 6 insertions(+), 10 deletions(-) mode change 100755 => 100644 freqtrade/commands/strategy_utils_commands.py diff --git a/freqtrade/commands/arguments.py b/freqtrade/commands/arguments.py index af5f0a470..a2d2f8c5c 100755 --- a/freqtrade/commands/arguments.py +++ b/freqtrade/commands/arguments.py @@ -124,10 +124,6 @@ ARGS_LOOKAHEAD_ANALYSIS = ARGS_BACKTEST + ["minimum_trade_amount", "lookahead_analysis_exportfilename"] -# + ["target_trades", "minimum_trades", -# "target_trades", "exportfilename"] -# will be added when the base version works. - class Arguments: """ Arguments Class. Manage the arguments received by the cli @@ -460,14 +456,14 @@ class Arguments: 'files to the current version', parents=[_common_parser]) strategy_updater_cmd.set_defaults(func=start_strategy_update) - self._build_args(optionlist=ARGS_STRATEGY_UPDATER, - parser=strategy_updater_cmd) + self._build_args(optionlist=ARGS_STRATEGY_UPDATER, parser=strategy_updater_cmd) # Add lookahead_analysis subcommand - lookahead_analayis_cmd = \ - subparsers.add_parser('lookahead-analysis', - help="checks for potential look ahead bias", - parents=[_common_parser, _strategy_parser]) + lookahead_analayis_cmd = subparsers.add_parser( + 'lookahead-analysis', + help="Check for potential look ahead bias.", + parents=[_common_parser, _strategy_parser]) + lookahead_analayis_cmd.set_defaults(func=start_lookahead_analysis) self._build_args(optionlist=ARGS_LOOKAHEAD_ANALYSIS, diff --git a/freqtrade/commands/strategy_utils_commands.py b/freqtrade/commands/strategy_utils_commands.py old mode 100755 new mode 100644