Update docs/strategy-advanced.md

This commit is contained in:
Matthias
2021-03-18 14:19:33 +01:00
committed by GitHub
parent bf14796d4c
commit dd4d1d82d4

View File

@@ -204,7 +204,7 @@ class AwesomeStrategy(IStrategy):
desired_stoploss = current_profit / 2
# Use a minimum of 2.5% and a maximum of 5%
return max(min(desired_stoploss, 0.05), 0.025
return max(min(desired_stoploss, 0.05), 0.025)
```
#### Calculating stoploss relative to open price