From a584854d4677525142bbf1f77411f2ce7b6a5b2c Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Apr 2024 20:15:43 +0200 Subject: [PATCH] Update docs to align with actual workings. --- 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 74dc40651..be14765e6 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -332,7 +332,7 @@ class AwesomeStrategy(IStrategy): **kwargs) -> Optional[float]: if current_profit < 0.04: - return -1 # return a value bigger than the initial stoploss to keep using the initial stoploss + return None # return None to keep using the initial stoploss # After reaching the desired offset, allow the stoploss to trail by half the profit desired_stoploss = current_profit / 2