mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 10:33:08 +00:00
Implement *candle definitions
This commit is contained in:
@@ -879,11 +879,12 @@ def test_validate_whitelist(default_conf):
|
||||
|
||||
validate_config_consistency(conf)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('protconf,expected', [
|
||||
([], None),
|
||||
([{"method": "StoplossGuard", "lookback_period": 2000, "stop_duration_candles": 10}], None),
|
||||
([{"method": "StoplossGuard", "lookback_period_candle": 20, "stop_duration": 10}], None),
|
||||
([{"method": "StoplossGuard", "lookback_period_candle": 20, "lookback_period": 2000,
|
||||
([{"method": "StoplossGuard", "lookback_period_candles": 20, "stop_duration": 10}], None),
|
||||
([{"method": "StoplossGuard", "lookback_period_candles": 20, "lookback_period": 2000,
|
||||
"stop_duration": 10}], r'Protections must specify either `lookback_period`.*'),
|
||||
([{"method": "StoplossGuard", "lookback_period": 20, "stop_duration": 10,
|
||||
"stop_duration_candles": 10}], r'Protections must specify either `stop_duration`.*'),
|
||||
|
||||
Reference in New Issue
Block a user