Minor updates, document no leverage changes

This commit is contained in:
Matthias 2022-02-23 20:09:15 +01:00
parent 1b6548c8d8
commit 5c2cca50e5
3 changed files with 1 additions and 4 deletions

View File

@ -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.

View File

@ -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)

View File

@ -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