I've been programming and testing strategies in my spare time just for fun, but lately a problem with MT4 has made it impossible. When I run a backtest, change the parameters, and run a backtest again, the second backtest frequently uses the parameters from the first one and so it gives me the exact same results. This makes optimization completely useless, since I get a list of results that look like this:
Has anyone ever had this problem before? Have you been able to fix it? I use extern rather than input for my variables. Could that be the problem? I don't see how, but I'm desperate at this point...
Any help would be greatly appreciated.
I'm not changing the parameters in my code. I'm clicking the "Expert Properties" button and changing them there. It still doesn't affect the tester.
UPDATE: I downloaded MT5, thinking it would fix all the bugs in MT4, but the exact same thing happened... What's going on? Someone please help me!
I particularly notice it happening when all the parameters are the same EXCEPT the STOP parameter, so I'm starting to think you were right and it is the code, after all. I just have no idea what in the code is causing the problem.
Thank you for pointing that out. That's a rather foolish typo.
Thank you even more for explaining the major problem I'm having! I just fixed it on one of my EAs and the optimization worked! Now I just have to fix the same error on the other hundred EAs I've written...lol
Really, I can't thank you enough! The EA I fixed (not the one posted here, that one is garbage) is now doing remarkably!