@ -359,14 +359,15 @@ See [Dataframe access](#dataframe-access) for more information about dataframe u
## Custom order price rules
By default, freqtrade use the orderbook to automatically set an order price, you also have the option to create custom order prices based on your strategy.
By default, freqtrade use the orderbook to automatically set an order price([Relevant documentation](configuration.md#prices-used-for-orders)), you also have the option to create custom order prices based on your strategy.
You can use this feature by creating a custom_entry_price function in your strategy file to customize entry prices and custom_exit_price for exits.
You can use this feature by creating a `custom_entry_price()` function in your strategy file to customize entry prices and custom_exit_price for exits.
!!!Note
If your custom pricing function return None or an invalid value, a default entry or exit price will be chosen based on the current rate.
!!! Note
If your custom pricing function return None or an invalid value, price will fall back to `proposed_rate`, which is based on the regular pricing configuration.
### Custom order entry and exit price example
### Custom order entry and exit price exemple
``` python
from datetime import datetime, timedelta, timezone
from freqtrade.persistence import Trade
@ -380,9 +381,9 @@ class AwesomeStrategy(IStrategy):