Improve wording on adjust_trade_position callback warning

This commit is contained in:
Matthias 2023-01-20 07:08:15 +01:00
parent 20093ea090
commit dbddc4c8aa

View File

@ -659,6 +659,7 @@ Position adjustments will always be applied in the direction of the trade, so a
!!! Warning "Backtesting" !!! Warning "Backtesting"
During backtesting this callback is called for each candle in `timeframe` or `timeframe_detail`, so run-time performance will be affected. During backtesting this callback is called for each candle in `timeframe` or `timeframe_detail`, so run-time performance will be affected.
This can also cause deviating results between live and backtesting, since backtesting can adjust the trade only once per candle, whereas live could adjust the trade multiple times per candle.
``` python ``` python
from freqtrade.persistence import Trade from freqtrade.persistence import Trade