ok. this is off topic. How would I define a state? Can I use some type of clustering to find them? I have looked at hidden markov chains (and everything else) but really dont know what I am looking at.
I just want to be able to change parameters given a market condition.