MQL4 - automated forex trading   /  

Forum

optimization started and finished functions

Back to topics list To post a new topic, please log in or register

avatar
21
bunnychopper 2009.05.04 20:54 

I created a summary report that prints all the detailed report information of each optimization run to a csv file for analysis in excel. And I'm looking for a better way to tell the system the optimization has started so I can rewrite over the last csv file but there is in no optimization_init() or optimization_deinit() functions that run at the beginning or end of the whole optimization . I see in the Tester Journal there are messages EA: optimization stated and EA: optimization stopped but there but the log file is not in the right location for the EA to open it. I'm using global right now to count the time that has passed between runs to assume a new test has started, but it's has annoying side effects. Does anyone know a better way?

article

HTML Walkthrough Using MQL4

HTML is nowadays one of the wide-spread types of documents. MetaTrader 4 Client Terminal allows you to save statements, test and optimization reports as .htm files. It is sometimes necessary to get information from such files in an MQL4 program. The article describes one of variations of how to get the tag structure and contents from HTML.


avatar
21
bunnychopper 2009.05.12 19:30 
I've learned how to move files around and I though I would just move the log file into the files folder so I could read the EA: optimization stated and EA: optimization stopped lines. Well I've learned the the log file is not updated until the optimization has been completed. If I stop an optimization and start a new one all the journal entries about those events are not accessible in the log file until one test completely finishes. So there goes that idea. I think there might not be a better way of do this than what I'm already doing.
Back to topics list  

To add comments, please log in or register