Fix your broken code - it is not opening any trades.
Thanks for your replay,.. what does it mean the "broken code"?
if it has code problem but why this EA work perfectly in tester with sames setting but not able to open on optimizer?
Do we have any function that works in Test and not work in optimizer?
- Broken: Adjective: not functioning properly; out working order.
- Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
- There is no chart in the optimizer, no objects.
After many years with working with EA and optimization, Now I stuck in funny problem which I can not understand. I coded a EA when it run with Tester I see the result ... but when I run it with same parameter in Optimization I see only zero result!! No matter you run the test in Every Tick or Control Price... both give me Zero result !
Anyone , Any idea?
Hi Farhad,
Did you ever find a solution to your problem? I am experiencing the exact same problem. My code isn't broken (lol), the EA works on tests but I get lots of zeroes on optimization. From reading other posts, this can occur if you use objects in your EA but I am not. Also, opt process was working on same EA, pair and date range but suddenly stopped. It's very frustrating! Thanks!
https://www.mql5.com/en/forum/340708
I found the problem, the optimizer did not accept objects created during the tests, and my solution was more complex, my EA did not create objects but the broker with its standard chart, what I did I opened a window for any asset, placed the scheme of default colors, I deselected the fields that draw trading history, with the changed chart I opened the list of objects to make sure there were none and saved the template as default and tester, so the optimizer and tester would use charts without objects.
- 2020.05.15
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
After many years with working with EA and optimization, Now I stuck in funny problem which I can not understand. I coded a EA when it run with Tester I see the result ... but when I run it with same parameter in Optimization I see only zero result!! No matter you run the test in Every Tick or Control Price... both give me Zero result !
Anyone , Any idea?