I am trying to make a distributed optimization script in mql4. Basically what I want it to do is to divide up the rounds of optimization between multiple computers. The .set file will then be sent, loaded, and optimized. The results would be sent back to the server.
What I really need is a programmatic way of saving,modifying,and loading the .set file.
I found this code but it is not really it.
Anyone have any tips for me?
I tried to use the windows API to do it - I got as far as programmatically opening the "Expert Properties" window, but I cannot click the "load" button because the window handle keeps changing.
What I really need is a programmatic way of saving,modifying,and loading the .set file.
I found this code but it is not really it.
Anyone have any tips for me?
I tried to use the windows API to do it - I got as far as programmatically opening the "Expert Properties" window, but I cannot click the "load" button because the window handle keeps changing.
Inserted Code
hWnd = 397508 ; //Expert Properties button SetFocus(hWnd); PostMessageA(hWnd,0x00F5,2,1); //Press it Sleep(100); hWnd = 268238 ; //Should be the "Load" button.This doesn't work because the window handle keeps changing. SetFocus(hWnd); PostMessageA(hWnd,0x00F5,2,1);