After this, and I hope to make it work, it would be necessary to work on the issue of self-optimization, using something that is published in this forex factory forum, and that I think is genius on the part of the developer, but unfortunately applied to a expert advisor not good:
https://www.forexfactory.com/thread/...tricks?page=53
https://www.forexfactory.com/thread/...tricks?page=53