Hi,
First, thank you for such a great program! I am trying to create a customized grid, however, I keep getting a stack overflow. It will generally work for a few trades, and then I get the error. I can't use a pending order grid because I am going to be adding custom code once I get the preliminary EA working. The way I have the program setup, I calculate the distance that I want, and place the result in a variable. I then check to see if the current price is equal to any of the grid levels. Once I close all of the trades, I reset the values back to their original values. Also, occasionally, the grid level does get executed at the correct time. I have attached a screenshot, and you can see the distance between trade 29 & 30 is 20 pips, when it should be 10. The EA is called newgridimproved2, in case you need to load it. Any help is greatly appreciated! Keep up the great work!
Thank you,
Beau
......
newgrid.png