Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1030

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
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...