diff --git a/docs/stoploss.md b/docs/stoploss.md index 975c2aeb5..f5e2f8df6 100644 --- a/docs/stoploss.md +++ b/docs/stoploss.md @@ -7,7 +7,6 @@ Most of the strategy files already include the optimal `stoploss` value. This parameter is optional. If you use it in the configuration file, it will take over the `stoploss` value from the strategy file. - ## Stop Loss support At this stage the bot contains the following stoploss support modes: diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 0121512ee..81c9dc5d3 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -93,7 +93,6 @@ class FreqtradeBot(object): """ Called on startup and after reloading the bot - triggers notifications and performs startup tasks - : return: None """ self.rpc.startup_messages(self.config, self.pairlists) if not self.edge: diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 3fc9a189e..ed09f6f22 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -436,7 +436,6 @@ class Trade(_DECL_BASE): # Stoploss value got changed logger.info(f"Stoploss for {trade} needs adjustment.") - logger.info(f"Stoploss: {trade.initial_stop_loss_pct}: {desired_stoploss}") # Force reset of stoploss trade.stop_loss = None trade.adjust_stop_loss(trade.open_rate, desired_stoploss) diff --git a/freqtrade/tests/test_freqtradebot.py b/freqtrade/tests/test_freqtradebot.py index 48eb51b54..2587b1b36 100644 --- a/freqtrade/tests/test_freqtradebot.py +++ b/freqtrade/tests/test_freqtradebot.py @@ -114,7 +114,7 @@ def test_cleanup(mocker, default_conf, caplog) -> None: def test_worker_running(mocker, default_conf, caplog) -> None: mock_throttle = MagicMock() mocker.patch('freqtrade.worker.Worker._throttle', mock_throttle) - mocker.patch('freqtrade.persistence.Trade.adjust_initial_stoploss', MagicMock()) + mocker.patch('freqtrade.persistence.Trade.stoploss_reinitialization', MagicMock()) worker = get_patched_worker(mocker, default_conf) diff --git a/freqtrade/tests/test_persistence.py b/freqtrade/tests/test_persistence.py index 93bad0797..3312bc21d 100644 --- a/freqtrade/tests/test_persistence.py +++ b/freqtrade/tests/test_persistence.py @@ -822,7 +822,6 @@ def test_stoploss_reinitialization(default_conf, fee): assert trade_adj.initial_stop_loss == 0.96 assert trade_adj.initial_stop_loss_pct == -0.04 - # Trailing stoploss (move stoplos up a bit) trade.adjust_stop_loss(1.02, 0.04) assert trade_adj.stop_loss == 0.9792