uncomplex backtest

This commit is contained in:
kryofly
2018-01-11 17:45:41 +01:00
parent feb5da0c35
commit 27769f0301
3 changed files with 83 additions and 60 deletions

View File

@@ -128,7 +128,9 @@ def optimizer(params):
from freqtrade.optimize import backtesting
backtesting.populate_buy_trend = buy_strategy_generator(params)
results = backtest(OPTIMIZE_CONFIG['stake_amount'], PROCESSED, stoploss=params['stoploss'])
results = backtest({'stake_amount': OPTIMIZE_CONFIG['stake_amount'],
'processed': PROCESSED,
'stoploss': params['stoploss']})
result_explanation = format_results(results)
total_profit = results.profit_percent.sum()