Merge pull request #311 from gcarq/use_named_arguments
Use named argument for backtest()
This commit is contained in:
commit
8e272cfd53
@ -183,9 +183,13 @@ def start(args):
|
|||||||
|
|
||||||
# Execute backtest and print results
|
# Execute backtest and print results
|
||||||
results = backtest(
|
results = backtest(
|
||||||
config['stake_amount'], preprocessed, max_open_trades, args.realistic_simulation,
|
stake_amount=config['stake_amount'],
|
||||||
config.get('experimental', {}).get('sell_profit_only', False), config.get('stoploss'),
|
processed=preprocessed,
|
||||||
config.get('experimental', {}).get('use_sell_signal', False)
|
max_open_trades=max_open_trades,
|
||||||
|
realistic=args.realistic_simulation,
|
||||||
|
sell_profit_only=config.get('experimental', {}).get('sell_profit_only', False),
|
||||||
|
stoploss=config.get('stoploss'),
|
||||||
|
use_sell_signal=config.get('experimental', {}).get('use_sell_signal', False)
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
'\n====================== BACKTESTING REPORT ================================\n%s',
|
'\n====================== BACKTESTING REPORT ================================\n%s',
|
||||||
|
Loading…
Reference in New Issue
Block a user