Thanks for modifications. I have run a quick back test on eurgbp since 1999. As you can see is not without merit but is still loosing money from the beginning of the crisis. Anyway there was no optimization.
I have spotted a problem. Please modify pullback code. I need to be within lets say 5 pips of the current atr level and not as it is now. Also on 1.02 version with lots optimized has run way over 10 on lot size. The attached graphic is with lot size =1 and lots optimized on false.