From 9e53b0742c19adf5517685d4f4028440a7b93e20 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 26 Oct 2024 18:38:53 +0200 Subject: [PATCH] docs: update documentation code to align with comment closes #10838 --- docs/strategy-callbacks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index ce1b9907c..6ba225007 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -975,7 +975,7 @@ class AwesomeStrategy(IStrategy): pair == "BTC/USDT" and entry_tag == "long_sma200" and side == "long" - and (current_time - timedelta(minutes=10)) > trade.open_date_utc + and (current_time - timedelta(minutes=10)) <= trade.open_date_utc ): # just cancel the order if it has been filled more than half of the amount if order.filled > order.remaining: