From b17c0cd4a2734b39840d612d361837c32d68e157 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 31 Dec 2023 18:30:53 +0100 Subject: [PATCH] Add Note about minimal_roi time used closes #6470 --- docs/strategy-customization.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/strategy-customization.md b/docs/strategy-customization.md index e80a30c64..3b21d9c4d 100644 --- a/docs/strategy-customization.md +++ b/docs/strategy-customization.md @@ -367,6 +367,11 @@ class AwesomeStrategy(IStrategy): } ``` +??? info "Orders that don't fill immediately" + `minimal_roi` will take the `trade.open_date` as reference, which is the time the trade was initialized / the first order for this trade was placed. + This will also hold true for limit orders that don't fill immediately (usually in combination with "off-spot" prices through `custom_entry_price()`), as well as for cases where the initial order is replaced through `adjust_entry_price()`. + The time used will still be from the initial `trade.open_date` (when the initial order was first placed), not from the newly placed order date. + ### Stoploss Setting a stoploss is highly recommended to protect your capital from strong moves against you.