I painstakingly removed every error in the code so that it works now.
I added a known setfile that I slightly modified to get rid of martingale
M1. EA is very complex, take your time
I'm not saying it is profitable as is, but you can try to find a good setfile
All I'm asking is that you share setfiles
enjoy !
Jeff