Added command line options in backtesting to override max_open_trades and stake_amount
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user