Hello, I'm from Vietnam. I'm an experienced MT4 & MT5 Coder and Forex Trader. I was on the Market more than 6 years till now. Regarding your project, I completely understand your idea. I have tried to modify it. Via visual back test, I see it worked well now. So please give me a message, I will send you a version for check. Also note that I put 2 true/false Options that permit you turn on/off Gartley & Bat pattern check. Thank you and I'm looking forward to working with you!. PS. I get it worked exactly as you want. I did back test on EURUDS M15 start at 2013.DEC.01, instead of displaying Gartley, it show Butterfly. And yes, that is hidden Butterfly that is covered by larger Gartley pattern .. lol