A slightly different version — For some reason, I decided to take a look at this today. The original had some issues. For one, the ma was declared as an int. This caused some issues and the ea would only take long trades. Because it crashed ...