Properly validate stoploss existence for optimize commands

closes #6740
This commit is contained in:
Matthias
2022-05-01 09:53:34 +02:00
parent 0c921e0116
commit d5fc923dcb
3 changed files with 12 additions and 5 deletions

View File

@@ -462,6 +462,10 @@ SCHEMA_BACKTEST_REQUIRED = [
'dataformat_ohlcv',
'dataformat_trades',
]
SCHEMA_BACKTEST_REQUIRED_FINAL = SCHEMA_BACKTEST_REQUIRED + [
'stoploss',
'minimal_roi',
]
SCHEMA_MINIMAL_REQUIRED = [
'exchange',