@fxdreema Hello!! I am having so much trouble with making my EA I have the same problem, I am doing a very simple moving average cross EA for mt4, I want to buy when it crosses over and close the buy when it crosses again and then sell ect, when I run this I get a critical error zero divide, please please please help me find a way to get this working I have been trying to code this in mql4 from scratch then gave up and found fxdreema and I love this idea but similar problems, I would be so thankful if you could help me thank you so much!!!!!
Brian

thought finding a winning strategy was going to be easier than this lol!! still need to work on a better strategy but the indicator works with EA now, I will attach it here just incase anyone else wants to use this in their EA 