Discussing the article: "Developing a multi-currency Expert Advisor (Part 11): Automating the optimization (first steps)"
Yes, I didn't expect it to be so simple myself. At first I studied Validate, I thought I would have to write something of my own based on it, but then I realised that I could do with a simpler implementation.
Thanks again for a great library!
Hi Yuriy,
I am trying to reblicate Part 11. I have created a SQL with CleanDatabase that created it in User\Roaming\AppData... However when I tried to use the Optimizer, I received the error: IPC server not started. Can you , or anyone, provide an easy reference to starting it?
Also, I use the /portable switch on Terminal and MetaEditor with all my MQL installations located in in C:\"Forex Program Files" will this cause any problems?
During my MQ4 development and teesting EAs, I created directories for all pairs I was interested in testing. I used the JOIN command to redirect the appropriate subdirectories of each test directory to my common directory for starting the probrams and receiving quote data to insure all separate tests were using the same data and executable. In addition, each test wrote s CVS file for each run and I used a version of the File functions to to read the CVS files from each Files directory and consolidate them into a common CVS file. If this is any interest for you in your use of CVS files in lieu of the SQL access, let me know.
In the interim, I am going to download Part 20 and muddle through the examples.
CapeCoddah
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Check out the new article: Developing a multi-currency Expert Advisor (Part 11): Automating the optimization (first steps).
To get a good EA, we need to select multiple good sets of parameters of trading strategy instances for it. This can be done manually by running optimization on different symbols and then selecting the best results. But it is better to delegate this work to the program and engage in more productive activities.
In general terms, our objectives can be formulated as follows: we want to get an EA that runs in the terminal and performs EA optimization with one instance of a trading strategy on several symbols and timeframes. Let these be EURGBP, EURUSD and GBPUSD, as well as timeframes H1, M30 and M15. We need to be able to select from the results of each optimization pass stored in the database those that will relate to a specific symbol and timeframe (and later to some other combinations of test parameters).
We will select a few best results according to different criteria from each group of results for one symbol-timeframe combination. We will place all selected instances into one (for now) instance group. Then we need to determine the group multiplier. A separate EA will do this in the future, but for now we can do this manually.
We form an initialization string to be used in the final EA based on the selected group and multiplier.
Author: Yuriy Bykov