Thank you, the values there are from a file and one time and I have a task that stretches over time.
Record the current price and time at the start of each day for 30 minutes, every 120 seconds
Do not overwrite previous entries.
This is what I wrote once. Use OnTimer instead of OnTick.
#property strictenum Локаль // Десятичный разделитель для отображения в Excel
{
Точка,
Запятая
};
extern Локаль RUS = Запятая; // Для русской локализации запятуюstring ИмяФайла; // Имя файла на дискеvoidOnInit()
{
ИмяФайла=Symbol()+".txt";
}
voidOnTick()
{
string Текст, Строка;
// Открытие или создание файла и перемещение указателя в конецint Файл = FileOpen(ИмяФайла, FILE_CSV | FILE_READ | FILE_WRITE, " ");
if(Файл == -1)
{
Alert("Ошибка при открытии файла ", ИмяФайла);
return;
}
FileSeek(Файл, 0, SEEK_END);
// Если новый файл записать строку заголовков колонокif(FileSize(Файл)==0)FileWrite(Файл, " Время ASK BID");
// Сбор информации и запись в файлFileWrite(Файл,
TimeToStr(Time[0]),
dstr(Ask),
dstr(Bid) );
FileClose(Файл);
Файл = 0; // Заметая следы обнулим указатель
}
// Преобразование числа double в строку с запятой или точкой в соответствии с локализациейstring dstr(double Цена)
{
if(!RUS) returnDoubleToStr(Цена, Digits);
returnStringSetChar(DoubleToStr(Цена, Digits), StringFind(DoubleToStr(Цена, Digits), "."), ',');
}
Hello. Can you please tell me ifafter activatingthe virtual server it is possible to close the mt4 site? Will the virtual server work or how does it work?
This is a problem with Excell. Put a dot instead of a comma as the separator between integer part and fractional part in the settings and it will show correctly.
Alexey Viktorov: This is a problem with Excell. Put a dot instead of a comma in the settings to separate the integer part from the fractional part and it will show correctly.
Writes and how to make it write every 120 seconds within 30 minutes of the bar opening?
Good day! Please help me to improve copier code. The problem is the following: EA (Slave) prints the message about no access to the file, no matter what I do... What's wrong?
Thank you, the values there are from a file and one time, but my task is spread out over time.
Record the current price and time at the beginning of each day for 30 minutes, every 120 seconds.
Do not overwrite previous entries.
Start writing your code and what doesn't work, we'll take it apart.
So what's there to write? Take any day and read the opening price of even or odd minutes PERIOD_M1...Thank you, the values there are from a file and one time and I have a task that stretches over time.
Record the current price and time at the start of each day for 30 minutes, every 120 seconds
Do not overwrite previous entries.
This is what I wrote once. Use OnTimer instead of OnTick.
Start writing your code and what doesn't work, we'll take it apart.
Writes Janv 51
Here's something I used to write. Use OnTimer instead of OnTick.
Thanks
Writes Jan 51
This is a problem with Excell. Put a dot instead of a comma in the settings to separate the integer part from the fractional part and it will show correctly.
Writes and how to make it write every 120 seconds within 30 minutes of the bar opening?
Decompiled by Artyom Trishkin
Note to you.
Writes and how do I make it write every 120 seconds within 30 minutes of the bar opening?
EventSetTimer
EventSetTimer
Does it not work in the scripts?