Quote from ronblack:
Thanks for the correction of the pseudocode.
I have implemented this approach to results I get from APS and in certain cases I get significant improvement in performance. I appears that some patterns are more suitable as entry signals and others as confirmation signals. This is part of the idea behind this approach.
Do you get better results with both daily and intraday patterns?
By the way, I figured out a cool way of doing what you suggested using a genetic program. The algorithm will take the APS patterns and let evolution determine the best system.