In "get_meta_barier()" I beleive the greater than here
if min_ret_ups[0] > min_ret_downs[0]:
should be less than.
I'm reading as 'min_ret_situation[0]' is up occurs first and 'min_ret_situation[1]' is down occurs first. So if min_ret_ups[0] > min_ret_downs[0]: is true than a significant down occurs first but 'min_ret_situation[0]' is set to 1.
If I have misunderstood or missed something apologies.
In "get_meta_barier()" I beleive the greater than here
if min_ret_ups[0] > min_ret_downs[0]:should be less than.
I'm reading as 'min_ret_situation[0]' is up occurs first and 'min_ret_situation[1]' is down occurs first. So if
min_ret_ups[0] > min_ret_downs[0]:is true than a significant down occurs first but 'min_ret_situation[0]' is set to 1.If I have misunderstood or missed something apologies.