Elffuss BraidHub

kikocis/freqtrade-strategies public

um, more custom_stoploss adjustments
Changesetd4ddb8f5a82c4cccc9076a4781f44cf23f50a9526ce5dd71bd4b0f93155546bc
AuthorBryan Chain <bryan.chain@cerner.com> · 2021-04-02 14:20 -04:00
CommitterBryan Chain <bryan.chain@cerner.com> · 2021-04-02 14:20 -04:00
Parentsab5dad54885e

Browse the files at this changeset

1 file changed

modified strategies/Solipsis_v3.py +4 −1
@@ -399,7 +399,10 @@
399399 return stoploss_from_open(min_profit, current_profit)
400400 return 1
401401
402- return min(max(stoploss_from_open(decay_stoploss, current_profit), 0.001), current_stoploss)
402+ if current_profit < 0:
403+ return min(max(stoploss_from_open(decay_stoploss, current_profit), 0.001), current_stoploss)
404+
405+ return 1
403406
404407 """
405408 Freqtrade ROI Overload for dynamic ROI functionality