Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1391
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 you tell me why this code in the tester only works on real data? Debug and profiler, it doesn't work on history. That is, when I put historical data, you can click on the graph as much as you want, "
" won't show up in the logs.
Restrictions of functions in the Strategy Tester#
There are limitations for some functions in the Strategy Tester of the client terminal.
Functions Comment(), Print() and PrintFormat()#
FunctionsComment(),Print() andPrintFormat() are not executed for increasing performance when optimizing EA parameters. The exception is the use of these functions inside theOnInit() handler. This allows us to simplify the search of error causes when errors occur.
The Alert(), MessageBox(), PlaySound(), SendFTP, SendMail(), SendNotification(), WebRequest() functions#
TheAlert(),MessageBox(),PlaySound(),SendFTP(),SendMail(),SendNotification() andWebRequest() functions interacting with the "outside world" are not executed in the strategy tester.
Limitations of the functions in the Strategy Tester#
There are limitations for some functions in the Strategy Tester of the client terminal.
Functions Comment(), Print() and PrintFormat()#
FunctionsComment(),Print() andPrintFormat() are not executed for increasing performance when optimizing EA parameters. The exception is the use of these functions inside theOnInit() handler. This allows us to simplify the search of error causes when errors occur.
The Alert(), MessageBox(), PlaySound(), SendFTP, SendMail(), SendNotification(), WebRequest() functions#
TheAlert(),MessageBox(),PlaySound(),SendFTP(),SendMail(),SendNotification() andWebRequest() functions interacting with the "outside world" are not executed in the strategy tester.
Thanks for the help, but that's not the point. In this case there is no optimization and thePrint() function must work. However, it turns out that interaction with graphical objects is not supported in the tester of MT5.https://www.mql5.com/ru/forum/189085/page19
You can click on graphics in visualization as much as you want. I don't understand why there is no documentation on this subject and nothing in the function description
OnChartEvent
I don't understand why there is no documentation on this topic and no description of the function.
Greetings, I have a question (MT4). How do I identify the relationship of two positions opened on pending orders placed at the same time?
There are no positions in 4. Order tickers do not change from pending to market order types.
There are no positions in 4. Order tickets do not change from pending to market order type.
Why - is it written like this ?
https://www.metatrader5.com/ru/terminal/help/trading/general_concept
Why - do they write it this way?
https://www.metatrader5.com/ru/terminal/help/trading/general_concept
the certificate for a 5. The 4 has a different reference.
https://docs.mql4.com/ru
can you help me with this?
https://www.mql5.com/ru/forum/363075
Please advise on this situation - I close all open positions in a period (say, a day) using CloseAllPositions() function, but where to call it correctly? in DeInit or choose a timer to close? Now it turns out that in the tester positions are closed by the tester (in the log due to test end), and only then my function CloseAllPositions() is called
What is "CloseAllPositions()" ? From where?
Please read the documentation.
Indeed, I was not paying attention. Thank you