diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 24dad1f56..fb7bea5f3 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -593,7 +593,7 @@ Additional orders also result in additional fees and those orders don't count to This callback is **not** called when there is an open order (either buy or sell) waiting for execution, or when you have reached the maximum amount of extra buys that you have set on `max_entry_position_adjustment`. `adjust_trade_position()` is called very frequently for the duration of a trade, so you must keep your implementation as performant as possible. -Position adjustments will always be applied in the direction of the trade, so a positive value will always increase your position, no matter if it's a long or short trade. +Position adjustments will always be applied in the direction of the trade, so a positive value will always increase your position, no matter if it's a long or short trade. Modifications to leverage are not possible. !!! Note "About stake size" Using fixed stake size means it will be the amount used for the first order, just like without position adjustment. diff --git a/tests/test_integration.py b/tests/test_integration.py index 846d7a5db..70ee1c52c 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -214,7 +214,6 @@ def test_forcebuy_last_unlimited(default_conf, ticker, fee, mocker, balance_rati def test_dca_buying(default_conf_usdt, ticker_usdt, fee, mocker) -> None: - # TODO-lev: this should also check with different leverages per entry order! default_conf_usdt['position_adjustment_enable'] = True freqtrade = get_patched_freqtradebot(mocker, default_conf_usdt) @@ -286,7 +285,6 @@ def test_dca_buying(default_conf_usdt, ticker_usdt, fee, mocker) -> None: def test_dca_short(default_conf_usdt, ticker_usdt, fee, mocker) -> None: - # TODO-lev: this should also check with different leverages per entry order! default_conf_usdt['position_adjustment_enable'] = True freqtrade = get_patched_freqtradebot(mocker, default_conf_usdt) diff --git a/tests/test_persistence.py b/tests/test_persistence.py index fa135dfbb..c287bf4fd 100644 --- a/tests/test_persistence.py +++ b/tests/test_persistence.py @@ -2372,7 +2372,6 @@ def test_recalc_trade_from_orders(fee): @pytest.mark.parametrize('is_short', [True, False]) -# TODO-lev: this should also check with different leverages per entry order! def test_recalc_trade_from_orders_ignores_bad_orders(fee, is_short): o1_amount = 100