There's no harm in wanting. You just need to understand the difference in testing and real work. From the "Tester" folder the files are deleted after the end of the test, while in real life they are saved. If I remember correctly.
There's no harm in wanting to. You just need to understand the difference between testing and real work. From the "Tester" folder the files are deleted when the test is finished, while in real life they are saved. If I remember correctly.
I understand the difference and that's why I asked for help.
There is no harm in wanting. You just have to understand the difference between testing and real work. Files are deleted from the Tester folder after completing a test, while they are saved in the real world. If I remember correctly.
The log file in the "Tester" folder is not deleted. Files saved in the test are not removed from the default folders either. But "I want to go there" is a limitation of MQ.
Tango_X: how to catch errors in MQL5 like "array out of range in ......"? For example, with the following code in the Print(high[rates_total]) indicator; "
the entire rates_total time series, but the numbering starts from zero high[ rates_total-1 ], like in all arrays, so the last element of the array will have the index high[ rates_total-1 ]
From which part of the code could the error message be coming: " array out range in 'Ind.mq5' (353,37) "?
This message appears when I start MT5. And when I connect to the line, the same message appears, but several more times (by the asset symbol and the active period of the indicator screen).
Seems to have looked at everything, but the message goes on. Or how to remove it from the log MT5, what would not write to the log ?
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.
But I want the file in "MQL5\Files" !!!
There's no harm in wanting. You just need to understand the difference in testing and real work. From the "Tester" folder the files are deleted after the end of the test, while in real life they are saved. If I remember correctly.
There's no harm in wanting to. You just need to understand the difference between testing and real work. From the "Tester" folder the files are deleted when the test is finished, while in real life they are saved. If I remember correctly.
I understand the difference and that's why I asked for help.
I understand the difference and that's why I asked for help
If you understand the difference, you must also understand the impossibility of implementing such a request with MQL tools
If you understand the difference, you must also understand that it is impossible to do this with MQL tools
OK
then this is the only right solutionhttps://www.mql5.com/ru/forum/227192
There is no harm in wanting. You just have to understand the difference between testing and real work. Files are deleted from the Tester folder after completing a test, while they are saved in the real world. If I remember correctly.
The log file in the "Tester" folder is not deleted. Files saved in the test are not removed from the default folders either. But "I want to go there" is a limitation of MQ.
"
how to catch errors in MQL5 like "array out of range in ......"? For example, with the following code in the Print(high[rates_total]) indicator;
"
you can always check if the array is out of range with ArraySize()https://www.mql5.com/ru/docs/array/arraysize
in your case Print(high[rates_total-1]) is enough; https://www.mql5.com/ru/docs/event_handlers/oncalculate
const intrates_total,//size of input times eries
the entire rates_total time series, but the numbering starts from zero high[ rates_total-1 ], like in all arrays, so the last element of the array will have the index high[ rates_total-1 ]
I looked in my crystal ball and saw that the problem is in line #353, 37 character...
I looked in my crystal ball and saw that the problem was in line 353, character 37...