sell_profit_offset -> exit_profit_offset

This commit is contained in:
Matthias
2022-04-05 20:03:20 +02:00
parent bba9629a2a
commit 5ce5c70be6
13 changed files with 25 additions and 23 deletions

View File

@@ -1153,7 +1153,7 @@ def test_backtest_start_multi_strat(default_conf, mocker, caplog, testdatadir):
default_conf.update({
"use_sell_signal": True,
"exit_profit_only": False,
"sell_profit_offset": 0.0,
"exit_profit_offset": 0.0,
"ignore_roi_if_buy_signal": False,
})
patch_exchange(mocker)
@@ -1230,7 +1230,7 @@ def test_backtest_start_multi_strat_nomock(default_conf, mocker, caplog, testdat
default_conf.update({
"use_sell_signal": True,
"exit_profit_only": False,
"sell_profit_offset": 0.0,
"exit_profit_offset": 0.0,
"ignore_roi_if_buy_signal": False,
})
patch_exchange(mocker)
@@ -1348,7 +1348,7 @@ def test_backtest_start_nomock_futures(default_conf_usdt, mocker,
"margin_mode": "isolated",
"use_sell_signal": True,
"exit_profit_only": False,
"sell_profit_offset": 0.0,
"exit_profit_offset": 0.0,
"ignore_roi_if_buy_signal": False,
"strategy": CURRENT_TEST_STRATEGY,
})
@@ -1452,7 +1452,7 @@ def test_backtest_start_multi_strat_nomock_detail(default_conf, mocker,
default_conf.update({
"use_sell_signal": True,
"exit_profit_only": False,
"sell_profit_offset": 0.0,
"exit_profit_offset": 0.0,
"ignore_roi_if_buy_signal": False,
})
patch_exchange(mocker)
@@ -1559,7 +1559,7 @@ def test_backtest_start_multi_strat_caching(default_conf, mocker, caplog, testda
default_conf.update({
"use_sell_signal": True,
"exit_profit_only": False,
"sell_profit_offset": 0.0,
"exit_profit_offset": 0.0,
"ignore_roi_if_buy_signal": False,
})
patch_exchange(mocker)

View File

@@ -3659,7 +3659,7 @@ def test_exit_profit_only(
default_conf_usdt.update({
'use_sell_signal': True,
'exit_profit_only': profit_only,
'sell_profit_offset': 0.1,
'exit_profit_offset': 0.1,
})
freqtrade = FreqtradeBot(default_conf_usdt)
patch_get_signal(freqtrade, enter_short=is_short, enter_long=not is_short)
@@ -3679,7 +3679,7 @@ def test_exit_profit_only(
assert freqtrade.handle_trade(trade) is handle_first
if handle_second:
freqtrade.strategy.sell_profit_offset = 0.0
freqtrade.strategy.exit_profit_offset = 0.0
assert freqtrade.handle_trade(trade) is True

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long