Added command line options in backtesting to override max_open_trades and stake_amount

This commit is contained in:
Your Name
2019-04-05 16:48:14 +03:00
parent 9dc2a30793
commit 4c5432be6f
2 changed files with 25 additions and 1 deletions

View File

@@ -247,6 +247,22 @@ class Arguments(object):
dest='timerange',
)
parser.add_argument(
'--max_open_trades',
help='Specify max_open_trades to use.',
default=None,
type=int,
dest='max_open_trades',
)
parser.add_argument(
'--stake_amount',
help='Specify stake_amount.',
default=None,
type=float,
dest='stake_amount',
)
@staticmethod
def hyperopt_options(parser: argparse.ArgumentParser) -> None:
"""