timeperiod argument to backtesting and hyperopt
This commit is contained in:
@@ -183,6 +183,13 @@ def build_subcommands(parser: argparse.ArgumentParser) -> None:
|
||||
action='store_true',
|
||||
dest='refresh_pairs',
|
||||
)
|
||||
backtesting_cmd.add_argument(
|
||||
'-tp', '--timeperiod',
|
||||
help='Use the last N ticks of data.',
|
||||
default=None,
|
||||
type=int,
|
||||
dest='timeperiod',
|
||||
)
|
||||
|
||||
# Add hyperopt subcommand
|
||||
hyperopt_cmd = subparsers.add_parser('hyperopt', help='hyperopt module')
|
||||
@@ -209,6 +216,13 @@ def build_subcommands(parser: argparse.ArgumentParser) -> None:
|
||||
type=int,
|
||||
metavar='INT',
|
||||
)
|
||||
hyperopt_cmd.add_argument(
|
||||
'-tp', '--timeperiod',
|
||||
help='Use the last N ticks of data.',
|
||||
default=None,
|
||||
type=int,
|
||||
dest='timeperiod',
|
||||
)
|
||||
|
||||
|
||||
# Required json-schema for user specified config
|
||||
|
Reference in New Issue
Block a user