First pass changes for cleaning up

This commit is contained in:
froggleston
2022-05-29 11:20:11 +01:00
parent 145faf9817
commit e7c5818d16
4 changed files with 75 additions and 96 deletions

View File

@@ -101,8 +101,8 @@ ARGS_HYPEROPT_SHOW = ["hyperopt_list_best", "hyperopt_list_profitable", "hyperop
"print_json", "hyperoptexportfilename", "hyperopt_show_no_header",
"disableparamexport", "backtest_breakdown"]
ARGS_ANALYZE_ENTRIES_EXITS = ["analysis_groups", "enter_reason_list",
"exit_reason_list", "indicator_list"]
ARGS_ANALYZE_ENTRIES_EXITS = ["analysis-groups", "enter-reason-list",
"exit-reason-list", "indicator-list"]
NO_CONF_REQURIED = ["convert-data", "convert-trade-data", "download-data", "list-timeframes",
"list-markets", "list-pairs", "list-strategies", "list-data",
@@ -421,7 +421,7 @@ class Arguments:
self._build_args(optionlist=ARGS_WEBSERVER, parser=webserver_cmd)
# Add backtesting analysis subcommand
analysis_cmd = subparsers.add_parser('analysis', help='Analysis module.',
analysis_cmd = subparsers.add_parser('analysis', help='Backtest Analysis module.',
parents=[_common_parser, _strategy_parser])
analysis_cmd.set_defaults(func=start_analysis_entries_exits)
self._build_args(optionlist=ARGS_ANALYZE_ENTRIES_EXITS, parser=analysis_cmd)

View File

@@ -615,7 +615,7 @@ AVAILABLE_CLI_OPTIONS = {
action="store_true",
),
"analysis_groups": Arg(
"--analysis_groups",
"--analysis-groups",
help=("grouping output - ",
"0: simple wins/losses by enter tag, ",
"1: by enter_tag, ",
@@ -626,21 +626,21 @@ AVAILABLE_CLI_OPTIONS = {
default="0,1,2",
),
"enter_reason_list": Arg(
"--enter_reason_list",
"--enter-reason-list",
help=("Comma separated list of entry signals to analyse. Default: all. ",
"e.g. 'entry_tag_a,entry_tag_b'"),
nargs='?',
default='all',
),
"exit_reason_list": Arg(
"--exit_reason_list",
"--exit-reason-list",
help=("Comma separated list of exit signals to analyse. Default: all. ",
"e.g. 'exit_tag_a,roi,stop_loss,trailing_stop_loss'"),
nargs='?',
default='all',
),
"indicator_list": Arg(
"--indicator_list",
"--indicator-list",
help=("Comma separated list of indicators to analyse. ",
"e.g. 'close,rsi,bb_lowerband,profit_abs'"),
nargs='?',