Skip to content

Commit b4a5f66

Browse files
committed
Return the trade duration along with the profit threshold returned by custom_roi
1 parent e105ea6 commit b4a5f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/strategy/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ def min_roi_reached_entry(
16861686

16871687
# The lowest available value is used to trigger an exit.
16881688
if custom_roi is not None and (min_roi is None or custom_roi < min_roi):
1689-
return 0, custom_roi
1689+
return trade_dur, custom_roi
16901690
else:
16911691
return roi_entry, min_roi
16921692

0 commit comments

Comments
 (0)