You can have it happen automatically . . . read this thread:
https://www.mql5.com/en/forum/138637
Thanks RaptorUK.
"
I set the parameters for my EA, save a set file. I then create an txt file which specifies this set file, amongst other things, false login & password to keep the terminal offline the name of the EA, the Symbol, Period, start and end dates and a report name . . . then I have a batch file that runs the terminal with this txt file . . .
start /wait terminal.exe EURJPY.txt
"
Can you send me a sample of this kind batch file.
I found something to manage windows control of Strategy Tester window.
#define ID_TERMINAL 0xE81E #define ID_TESTER 0x53 #define ID_PANEL 0x81BF hMetaTrader = GetAncestor(WindowHandle(Symbol(),Period()),2); hTerminal = GetDlgItem(hMetaTrader, ID_TERMINAL); hTester = GetDlgItem(hTerminal, ID_TESTER); hPanel = GetDlgItem(hTester, ID_PANEL); hFrom = FindControlByID(hPanel, "SysDateTimePick32", 0); hTo = FindControlByID(hPanel, "SysDateTimePick32", 1); hVisual = FindControlByID(hPanel, "SysDateTimePick32", 2); hAdvisor = FindControlByID(hPanel, "ComboBox", 0); hSymbol = FindControlByID(hPanel, "ComboBox", 1); hPeriod = FindControlByID(hPanel, "ComboBox", 2); hModel = FindControlByID(hPanel, "ComboBox", 3); hProp = FindControlByID(hPanel, "Button", 0); hDate = FindControlByID(hPanel, "Button", 4); hOpt = FindControlByID(hPanel, "Button", 5); hStart = FindControlByID(hPanel, "Button", 9);
I can't get the Winows ID of Page controls -> Settings, Result, Graph, Report, Journal.
I need change the active page from Settings to Result.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can I get strategy tester results or save StrategyTester.htm file programmatically?