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
Only in the mql5 help there is no word about them yet....
Will there be for 4?
FileSave has already been in the help since the 14th of FileSave.
You can update manually from the site
A small comment on the comprehensibility of the reference.
The position of the reference was not immediately clear (there is an obvious understatement):
You should read the help before criticising as usual. If the example does not help, then any reference is powerless
{
string filename=_Symbol+"_ticks.bin";
MqlTick ticks[];
//---
int copied=CopyTicks(_Symbol,ticks,COPY_TICKS_ALL,0,ticks_to_save);
if(copied!=-1)
{
PrintFormat(" CopyTicks(%s) copied %d ticks",_Symbol,copied);
//--- if the tick history is synchronised, the error code is zero
if(!GetLastError()==0)
PrintFormat("%s: Ticks are not synchronized, error=%d",_Symbol,copied,_LastError);
//--- write the ticks to the file
if(!FileSave(filename,ticks,FILE_COMMON))
PrintFormat("FileSave() failed, error=%d",GetLastError());
}
If you like, I can write nothing at all, except admiration. If I start admiring, you'll say I'm being sarcastic and so on. I can't be pleased.
If you understand the phrase:
I understand
intcommon_flag=0// fileflag, by default files are written to the <data catalogue>\MQL5\Files\ folder.
Only in the mql5 help there is no word about them yet....
Will there be for 4?
Unfortunately, the function does not provide a complete list (including all subfolders and files in them). That's why I'll add it
The meaning of the filter is the same as in the article. Example of application
To one place and on the topic
Forum on trading, automated trading systems and testing trading strategies
Features of mql5 language, subtleties and techniques of work
fxsaber, 2017.08.15 17:30
this article is great, thank you very much for the information.
There is a typo in the article. In the description of the function "Read a file with delimiters into an array" the description of the structure:
and in should be (and in the script so):
А как можно уменшить размер файла? Примерно имею какой то BIN файл в которой поддерживаю какие то данни, потом делаю дефрагмент файла и наконец хочу умешнит его длина, потому что сзади уже есть лишное пространство. Как етого сделать? Нужна какая та функция типа FileResize(int newSize).