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, "
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#
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#
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.
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
Свойства ордеров - Торговые константы - Константы, перечисления и структуры - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
Nikolay Kuznetsov: 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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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
OnChartEventI 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