Add sell_profit_offset parameter

Allows defining positive offsets before enabling the sell signal
This commit is contained in:
Matthias
2021-01-11 19:30:07 +01:00
parent dbc25f00ac
commit 63a579dbab
6 changed files with 11 additions and 5 deletions

View File

@@ -299,6 +299,7 @@ def generate_backtest_stats(btdata: Dict[str, DataFrame],
'minimal_roi': config['minimal_roi'],
'use_sell_signal': config['ask_strategy']['use_sell_signal'],
'sell_profit_only': config['ask_strategy']['sell_profit_only'],
'sell_profit_offset': config['ask_strategy']['sell_profit_offset'],
'ignore_roi_if_buy_signal': config['ask_strategy']['ignore_roi_if_buy_signal'],
**daily_stats,
}