Call custom_exit_price only for sell_signal and custom_sell
This commit is contained in:
@@ -59,7 +59,7 @@ This loop will be repeated again and again until the bot is stopped.
|
||||
* Call `custom_entry_price()` (if implemented in the strategy) to determine entry price (Prices are moved to be within the opening candle).
|
||||
* Determine stake size by calling the `custom_stake_amount()` callback.
|
||||
* Call `custom_stoploss()` and `custom_sell()` to find custom exit points.
|
||||
* Call `custom_exit_price()` to determine exit price (Prices are moved to be within the closing candle).
|
||||
* For sells based on sell-signal and custom-sell: Call `custom_exit_price()` to determine exit price (Prices are moved to be within the closing candle).
|
||||
|
||||
* Generate backtest report output
|
||||
|
||||
|
@@ -390,6 +390,7 @@ class AwesomeStrategy(IStrategy):
|
||||
!!! Warning "Backtesting"
|
||||
While Custom prices are supported in backtesting (starting with 2021.12), prices will be moved to within the candle's high/low prices.
|
||||
This behavior is currently being tested, and might be changed at a later point.
|
||||
`custom_exit_price()` is only called for sells of type Sell_signal and Custom sell. All other sell-types will use regular backtesting prices.
|
||||
|
||||
## Custom order timeout rules
|
||||
|
||||
|
Reference in New Issue
Block a user