Add parameter to enable protections for backtesting

This commit is contained in:
Matthias
2020-11-23 20:29:29 +01:00
parent 32189d27c8
commit e2d15f4082
5 changed files with 25 additions and 5 deletions

View File

@@ -542,6 +542,8 @@ class Hyperopt:
end_date=max_date.datetime,
max_open_trades=self.max_open_trades,
position_stacking=self.position_stacking,
enable_protections=self.config.get('enable_protections', False),
)
return self._get_results_dict(backtesting_results, min_date, max_date,
params_dict, params_details)