remove stoploss parameter from backtest, it is loaded from strategy

This commit is contained in:
Janne Sinivirta
2018-02-17 11:14:03 +02:00
parent bf72b5bc37
commit fac122891f
2 changed files with 1 additions and 6 deletions

View File

@@ -415,13 +415,10 @@ def generate_optimizer(args):
backtesting.populate_buy_trend = buy_strategy_generator(params)
if has_space(args.spaces, 'stoploss'):
stoploss = params['stoploss']
else:
stoploss = strategy.stoploss
strategy.stoploss = params['stoploss']
results = backtest({'stake_amount': OPTIMIZE_CONFIG['stake_amount'],
'processed': PROCESSED,
'stoploss': stoploss,
'realistic': args.realistic_simulation,
})
result_explanation = format_results(results)