Add performance warnings for backtesting and implementation.
This commit is contained in:
parent
8e424f7c73
commit
94631c7d64
@ -578,6 +578,7 @@ For performance reasons, it's disabled by default and freqtrade will show a warn
|
|||||||
The strategy is expected to return a stake_amount if and when an additional buy order should be made (position is increased).
|
The strategy is expected to return a stake_amount if and when an additional buy order should be made (position is increased).
|
||||||
If there is not enough funds in the wallet then nothing will happen.
|
If there is not enough funds in the wallet then nothing will happen.
|
||||||
Additional orders also mean additional fees and those orders don't count towards `max_open_trades`.
|
Additional orders also mean additional fees and those orders don't count towards `max_open_trades`.
|
||||||
|
This callback is called very frequently, so you must keep your implementation as fast as possible.
|
||||||
|
|
||||||
!!! Note "About stake size"
|
!!! Note "About stake size"
|
||||||
Using fixed stake size means it will be the amount used for the first order just like without position adjustment.
|
Using fixed stake size means it will be the amount used for the first order just like without position adjustment.
|
||||||
@ -587,6 +588,9 @@ Additional orders also mean additional fees and those orders don't count towards
|
|||||||
!!! Warning
|
!!! Warning
|
||||||
Stoploss is still calculated from the initial opening price, not averaged price.
|
Stoploss is still calculated from the initial opening price, not averaged price.
|
||||||
|
|
||||||
|
!!! Warning "Backtesting"
|
||||||
|
During backtesting this callback is called for each timeframe or `timeframe-detail`, so performance will be affected.
|
||||||
|
|
||||||
``` python
|
``` python
|
||||||
from freqtrade.persistence import Trade
|
from freqtrade.persistence import Trade
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user