From f08d673a52f4034e367c26ca911911b793d6a734 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 16 Aug 2021 23:26:08 -0400 Subject: [PATCH] add details and exemple of custom_price_max_distance_percent usage in doc --- docs/strategy-advanced.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/strategy-advanced.md b/docs/strategy-advanced.md index e53f20693..babcc5e7b 100644 --- a/docs/strategy-advanced.md +++ b/docs/strategy-advanced.md @@ -398,7 +398,10 @@ class AwesomeStrategy(IStrategy): ``` !!! Warning - Modifying entry and exit prices will only work for limit orders. Depending on the price chosen, this can result in a lot of unfilled orders. + Modifying entry and exit prices will only work for limit orders. Depending on the price chosen, this can result in a lot of unfilled orders. By default the maximum allowed distance between the current price and the custom price is 2%, this value can be changed in config with the `custom_price_max_distance_percent` parameter. + +_Exemple_ +If the new_entryprice is 97, the proposed_rate is 100 and the `custom_price_max_distance_percent` is set to 2%, The retained valid custom entry price will be 98. !!! Warning "No backtesting support" Custom entry-prices are currently not supported during backtesting.