kikocis/freqtrade-strategies public
Changesets · Branches · Tags · Compare
| Changeset | d4ddb8f5a82c4cccc9076a4781f44cf23f50a9526ce5dd71bd4b0f93155546bc |
|---|---|
| Author | Bryan Chain <bryan.chain@cerner.com> · 2021-04-02 14:20 -04:00 |
| Committer | Bryan Chain <bryan.chain@cerner.com> · 2021-04-02 14:20 -04:00 |
| Parents | ab5dad54885e |
1 file changed
modified strategies/Solipsis_v3.py +4 −1
| @@ -399,7 +399,10 @@ | ||
| 399 | 399 | return stoploss_from_open(min_profit, current_profit) |
| 400 | 400 | return 1 |
| 401 | 401 | |
| 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 | |
| 403 | 406 | |
| 404 | 407 | """ |
| 405 | 408 | Freqtrade ROI Overload for dynamic ROI functionality |