"For simplicity but without loss of generality, assume there are
n past price changes, each of which is either UP (1) or DOWN (0)."
You know, this is the kind of thing that makes me wonder about how much quantum computation is going to change the game.
Where we aren't just calculating ups and downs but superpositions between the two.