tbaranoski / Trading_Quant

Apache License 2.0
3 stars 2 forks source link

Create and Connect trend_state(Enum) to trend object #33

Closed tbaranoski closed 2 years ago

tbaranoski commented 2 years ago

Create state machine for trend and set up with Enum to maintain modularity

tbaranoski commented 2 years ago

confirmed_downtrend = 1 end_downtrend = 2 confirmed_uptrend = 3 end_uptrend = 4 start_chop = 5 end_chop = 6 just_started = 7

tbaranoski commented 2 years ago

State 1: Confirmed Downtrend: Lower Low and Lower High Most Recentlly Seen

State 2: No current trend: Possible reversal from Downtrend to Uptrend

State 3: Confirmed Uptrend: Higher Low and Higher High Most Recentlly Seen

State 4: No current trend: Possible reversal from Uptrend to Downtrend

State 5: Sideways / Chop: Market is confirmed choppy and no trend can be determined

State 6: Sideways / Chop: Market May be close to coming out of sideways/chop and a trend may soon be able to be determined

State 7: Not Enough Data: No trend Can be determined (DEFAULT)