How can I write all available history in a file in the form of these strings
O;H;L;C;volume;MA3;MA5;MA7;MA13; ... and other indicators further
On H1 timeframe?
Thank you
//+------------------------- WritingLineInFile() ----------------------------//| Дописывание строки в конец файла//+---------------------------------void WritingLineInFile(string FlName,string Text){int file_handle=FileOpen( FlName, FILE_CSV| FILE_READ| FILE_WRITE," ");if( file_handle>0){FileSeek( file_handle,0, SEEK_END);FileWrite( file_handle, Text);FileClose( file_handle);}else{Print("Ошибка ",GetLastError()," - Не удалось открыть файл ", FlName);}}//---------------------------------------------------------------------------
This is a user-defined subroutine that adds a text line to the end of the file. It is placed after the start function. At the very start we use it as follows:
Just yesterday I tried MQL5 for the first time. I have a problem with the button. Please advise how to set coordinates of a button, change its colour, set text and how to receive feedback from it. I have tried to use the old version that was published before the MT5 release. Where can I read it? Thank you. :)
Just yesterday I tried MQL5 for the first time. I have a problem with the button. Please advise how to set coordinates of a button, change its colour, set text and how to receive feedback from it. I have tried to use the old version that was published before the MT5 release. Where can I read it? Thank you. :)
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.
How do I open a position at a precise time? For example, I need to open a position at 00.15 local time.
if (hour == 0 && minute==15) {then do this;}
Look into Expert Advisor, there are some missing (and some unnecessary) brackets:
Damn bot doesn't allow to lay out all code, I'll have to cut it. I cut switch() to make it fit.
How would I write all available history to a file in the form of these lines
O;H;L;C;volume;MA3;MA5;MA7;MA13; ... and other indicators further
On H1 timeframe?
Thank you
How can I write all available history in a file in the form of these strings
O;H;L;C;volume;MA3;MA5;MA7;MA13; ... and other indicators further
On H1 timeframe?
Thank you
This is a user-defined subroutine that adds a text line to the end of the file. It is placed after the start function. At the very start we use it as follows:
Thank you!
Can you also tell me how to arrange to go through all the history?
I have a file that contains H1 data from 1999 to 2009
Planning to install a new operating system purely for the tester, who knows which OS has faster tests?
Good evening.
Just yesterday I tried MQL5 for the first time. I have a problem with the button. Please advise how to set coordinates of a button, change its colour, set text and how to receive feedback from it. I have tried to use the old version that was published before the MT5 release. Where can I read it? Thank you. :)
Good evening.
Just yesterday I tried MQL5 for the first time. I have a problem with the button. Please advise how to set coordinates of a button, change its colour, set text and how to receive feedback from it. I have tried to use the old version that was published before the MT5 release. Where can I read it? Thank you. :)
Go here... Beta-testing of MetaTrader 5 has started!
It's this way... Beta testing of MetaTrader 5 has started!
Thank you very much. :)Planning to install a new operating system purely for the tester, who knows which OS has faster tests?
And anyway, well don't start a new thread on this, will you?
XP and the subject is closed...
)))