tbaranoski / Trading_Quant

Apache License 2.0
3 stars 2 forks source link

State Diagram #35

Closed tbaranoski closed 2 years ago

tbaranoski commented 2 years ago

For price action reversals with all different combinations. Need a way to keep track of state and a way to update

tbaranoski commented 2 years ago

image

tbaranoski commented 2 years ago

image

tbaranoski commented 2 years ago

NEW LOGIC ADDED FOR BUG:

State:6 -> 4

        elif((self.higher_high_counter > 0) and (self.higher_low_counter > 0) and (self.lower_low_counter == 0) and (self.lower_high_counter == 0)):
            new_state = trend_state.possible_downtrend_reversal

        #State:6 -> 2 
        elif((self.higher_high_counter == 0) and (self.higher_low_counter == 0) and (self.lower_low_counter > 0) and (self.lower_high_counter > 0)):
            new_state = trend_state.possible_uptrend_reversal