This post has been selected as an answer to the original posters question
that depends on what you mean with automatic optimization. John Clayburg did something what he calls parallel systems (or functions). That could be described as a self-optimizing system of sorts.
With TS 9 you have access to the optimization API and you could probably code something that would optimize your code.
While the idea sounds intriguing one should keep in mind that it's similar to every other optimization - even if you come up with a system that finds the best input parameters for the previous bar, this is no guarantee that the next bar will have the same characteristics.
Thank you ABCTG. While its obvious that optimization is no guarantee of success in most cases it is a necessary evil to some degree. I have a system that works well on very short time frames with frequent optimization. Tired of the optimization process and thought it would be a worthwhile project to attempt this or at least explore it. I was really looking for someones input who had ever tried something similar or had some input on how it might be accomplished. Thanks again.