From 07ba14d1ea150366f953c9ae3e1ca4bc2bd25aec Mon Sep 17 00:00:00 2001 From: misagh Date: Sat, 15 Sep 2018 15:52:10 +0200 Subject: [PATCH] backslap bug resolved --- freqtrade/optimize/edge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/edge.py b/freqtrade/optimize/edge.py index ad37bf49b..88e92f03b 100644 --- a/freqtrade/optimize/edge.py +++ b/freqtrade/optimize/edge.py @@ -627,7 +627,7 @@ class Edge: elif np_t_sell_ind < 99999999 and np_t_sell_ind < np_t_stop_ind: # move sell onto next candle, we only look back on sell # will use the open price later. - t_exit_ind = t_open_ind + np_t_sell_ind + 1 # Set Exit row index + t_exit_ind = t_open_ind + np_t_sell_ind # Set Exit row index t_exit_type = SellType.SELL_SIGNAL # Set Exit type (sell) np_t_exit_pri = np_open # The price field our SELL exit will use if debug: