Access to Optimization Result of a tester with MQL4

Back to topics list To post a new topic, please log in or register
avatar
11
Aschab 2016.03.01 22:19
 

Greetings. I'm trying to access the results of the chart "Optimization Result" when i run a test.

I don't really know how to use onTester(), as I can create messages, alerts, sounds, nor change variables. I dont really know when and how its called.

 

What I need to do is get the pass of Optimization results, idealy loop through them and modify them, maybe delete a few. How can I achieve this? 

avatar
2017
gooly 2016.03.01 23:02 #
 

Do you see the Optimization Results tab?

Either right mouse click => copy all or => save as report.

It has a formate that can be easily imported into an EXCEL-sheet.

There is even the option Set Input Parameters (to save this as a set-file) and you can run this now in visual mode.

All you need you find here!!

avatar
11
Aschab 2016.03.01 23:04 #
 
gooly:

Do you see the Optimization Results tab?

Either right mouse click => copy all or => save as report.

It has a formate that can be easily imported into an EXCEL-sheet.

There is even the option Set Input Parameters (to save this as a set-file) and you can run this now in visual mode.

Thanks for your answer. But I'm trying to automate this process. Is there no way to access this result by mql4?
avatar
2017
gooly 2016.03.01 23:07 #
 
Aschab:
Thanks for your answer. But I'm trying to automate this process. Is there no way to access this result by mql4?
Yes, write the results into a csv-file OnTester(), read it, sort it, ....
avatar
11
Aschab 2016.03.01 23:09 #
 
gooly:
Yes, write the results into a csv-file OnTester(), read it, sort it, ....
How do i Do that? I don't manage to do anything OnTester(). mql have a "write" and "read" csv functions or I need to create a dll?
avatar
11
Aschab 2016.03.01 23:22 #
 
Aschab:
How do i Do that? I don't manage to do anything OnTester(). mql have a "write" and "read" csv functions or I need to create a dll?

I advanced. I did this:

 

handle=FileOpen("data1.csv",FILE_CSV|FILE_READ|FILE_WRITE,',');

   if(handle<1)

   {

   return(false);

   }

   else

   {

   FileWrite(handle, "Bidibidibadibum");

   } 

 

It works on my OnInit function. But not on my OnTester(). Where I'm messing up?

Back to topics list  

To add comments, please log in or register