From 7b8098553391e9297ecab09127996bfa40a25872 Mon Sep 17 00:00:00 2001 From: misagh Date: Wed, 7 Nov 2018 19:00:18 +0100 Subject: [PATCH] comments on recursive function + indentation of function declaration --- freqtrade/edge/__init__.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/freqtrade/edge/__init__.py b/freqtrade/edge/__init__.py index 5d62c1415..61cf6940e 100644 --- a/freqtrade/edge/__init__.py +++ b/freqtrade/edge/__init__.py @@ -316,15 +316,16 @@ class Edge(): return result - def _detect_next_stop_or_sell_point( - self, - buy_column, - sell_column, - date_column, - ohlc_columns, - stoploss, - pair, - start_point=0): + def _detect_next_stop_or_sell_point(self, buy_column, sell_column, date_column, + ohlc_columns, stoploss, pair, start_point=0): + """ + Iterate through ohlc_columns recursively in order to find the next trade + Next trade opens from the first buy signal noticed to + The sell or stoploss signal after it. + It then calls itself cutting OHLC, buy_column, sell_colum and date_column + Cut from (the exit trade index) + 1 + Author: https://github.com/mishaker + """ result: list = [] open_trade_index = utf1st.find_1st(buy_column, 1, utf1st.cmp_equal)