timeperiod argument to backtesting and hyperopt

This commit is contained in:
kryofly
2018-01-10 23:03:05 +01:00
parent feca87345f
commit b0f3fd7ffb
7 changed files with 41 additions and 17 deletions

View File

@@ -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