mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Update docs to align with actual workings.
This commit is contained in:
parent
1df21d3cdf
commit
a584854d46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user