From f9124ef5b9c5150f2d3edf58904d8d562cf74748 Mon Sep 17 00:00:00 2001 From: Joe Schr <8218910+TheJoeSchr@users.noreply.github.com> Date: Tue, 18 Apr 2023 17:36:36 +0200 Subject: [PATCH] docs: strategy-callbacks: removes outdated `leverage` argument --- docs/strategy-callbacks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 070eb6d48..a99b2ae29 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -318,11 +318,11 @@ class AwesomeStrategy(IStrategy): # evaluate highest to lowest, so that highest possible stop is used if current_profit > 0.40: - return stoploss_from_open(0.25, current_profit, is_short=trade.is_short, leverage=trade.leverage) + return stoploss_from_open(0.25, current_profit, is_short=trade.is_short) elif current_profit > 0.25: - return stoploss_from_open(0.15, current_profit, is_short=trade.is_short, leverage=trade.leverage) + return stoploss_from_open(0.15, current_profit, is_short=trade.is_short) elif current_profit > 0.20: - return stoploss_from_open(0.07, current_profit, is_short=trade.is_short, leverage=trade.leverage) + return stoploss_from_open(0.07, current_profit, is_short=trade.is_short) # return maximum stoploss value, keeping current stoploss price unchanged return 1