Download MetaTrader 5

backtest without GUI

To add comments, please log in or register
Björn Arnulfson
66
Björn Arnulfson  
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

Simon Gniadkowski
Moderator
18024
Simon Gniadkowski  
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 . . .
guufii
5
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... :)



Alain Verleyen
Moderator
32524
Alain Verleyen  
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
guufii
5
guufii  

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

guufii
5
guufii  
Anyone?
Alain Verleyen
Moderator
32524
Alain Verleyen  
guufii:
Anyone?

Not possible, you always have a GUI.
To add comments, please log in or register