comments on recursive function + indentation of function declaration
This commit is contained in:
parent
934dd97eb2
commit
7b80985533
@ -316,15 +316,16 @@ class Edge():
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def _detect_next_stop_or_sell_point(
|
def _detect_next_stop_or_sell_point(self, buy_column, sell_column, date_column,
|
||||||
self,
|
ohlc_columns, stoploss, pair, start_point=0):
|
||||||
buy_column,
|
"""
|
||||||
sell_column,
|
Iterate through ohlc_columns recursively in order to find the next trade
|
||||||
date_column,
|
Next trade opens from the first buy signal noticed to
|
||||||
ohlc_columns,
|
The sell or stoploss signal after it.
|
||||||
stoploss,
|
It then calls itself cutting OHLC, buy_column, sell_colum and date_column
|
||||||
pair,
|
Cut from (the exit trade index) + 1
|
||||||
start_point=0):
|
Author: https://github.com/mishaker
|
||||||
|
"""
|
||||||
|
|
||||||
result: list = []
|
result: list = []
|
||||||
open_trade_index = utf1st.find_1st(buy_column, 1, utf1st.cmp_equal)
|
open_trade_index = utf1st.find_1st(buy_column, 1, utf1st.cmp_equal)
|
||||||
|
Loading…
Reference in New Issue
Block a user