backtest without GUI

 
Hello,

I am developing a program that invents trading algorithms, implements
and tests them. I already found out, that all my ideas could be
realized with JForex. But JForex has the disadvantage that almost no
broker supports it. Therefore, I would like to ask you if the
following is also possible with MQL4:

One process keeps generating new EAs in some directory. Another
process keeps checking the directory. Every time it finds an EA
that has not already been tested, it backtests the EA and writes the
result to some directory.

All instructions concerning backtesting with MQL4 I have seen so far,
speak about using Metatrader *manually*, i.e. by opening the GUI,
entering some values, clicking some buttons, and so on. Can
Metatrader also be used from another program, without the GUI? And, if
so, are there descriptions of how to do this?

Cheers,

Björn

 
bjoern:
Hello,

I am developing a program that invents trading algorithms, implements
and tests them. I already found out, that all my ideas could be
realized with JForex. But JForex has the disadvantage that almost no
broker supports it. Therefore, I would like to ask you if the
following is also possible with MQL4:



You can do it with bat files,  read the MT4 help,  it's all in there . . .
 

Hi,

I have the same problem, but have not found anything in the MT4 help except the startup option. Is there a special option I have to set or is there another way to do it? A little example would help... :)



 
guufii:

Hi,

I have the same problem, but have not found anything in the MT4 help except the startup option. Is there a special option I have to set or is there another way to do it? A little example would help... :)



  1. In MT4, press F1 to start the "Client Terminal - User guide".
  2. On the Search tab (not Index), enter "Configuration at startup".
  3. Double-click on the first result
 

Hi,

Thank you for your answer. I have already read this section and I could specify a file according to the manual that will launch a backtest and then closes the window again. However, if I start the configuration file I still get a GUI, that I don't need. I would like to do the automated backtest without(!) GUI. I have found no option to start MT4 in silent mode in the "Configuration at startup" section. What is the best way to do it?

Thanks

 
Anyone?
 
guufii:
Anyone?

Not possible, you always have a GUI.
Reason: