I would like to change some variable parameters in my EA, depending on the way the market has been behaving. The code I have read on this forum is much more sophisticated than I am capable of writing yet. Can someone point me to a mql4 package that has a good algorithm for determining if the market has been trending or range bound for the last few hours?