Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 150
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
Julia, go to the Control Panel, select Language and regional standards, go to the tab "Advanced" and look at the language in the "Language of programs that do not support Unicode. It should be Russian.
Thank you, it helped, it was originally English.
If there are several libraries. They will work together in one EA. That all these libraries will be imported to the header file and then to the EA, it is clear. But here, if there are some variables, which are repeated in each library. Is it necessary to declare the same variables all over again in each library?
For example, take a variable:
in err = GetLastError();
Is it the only way to declare the same variable in every library? After all, there could be many such variables...
If there are several libraries. They will work together in one EA. That all these libraries will be imported to the header file and then to the EA, it is clear. But here, if there are some variables, which are repeated in each library. Is it necessary to declare the same variables all over again in each library?
For example, take a variable:
Is it the only way to declare the same variable in every library? After all, there could be many such variables...
https://docs.mql4.com/ru/files
Oops. Prescribed as follows.
int start() // Спец. функция start
{
//--------------------------------------------------------------- 2 --
int Handle;
string File_Name="News.csv", // Имя файла
datetime Dat_DtTm; // Дата и время события(дата)
//--------------------------------------------------------------- 3 --
Handle=FileOpen(File_Name,FILE_CSV|FILE_READ,";");// Открытие файла
if(Handle<0){ // Неудача при открытии файла
if(GetLastError()==4103) // Если файла не существует,..
Alert("Нет файла с именем ",File_Name);//.. извещаем трейдера
else // При любой другой ошибке..
Alert("Ошибка при открытии файла ",File_Name);//..такое сообщ
PlaySound("Bzrrr.wav"); // Звуковое сопровождение
return; // Выход из start()
}else{
FileSeek(handle, 0, SEEK_END);
FileWrite(handle, "ff", Dat_DtTm);
FileClose(handle);
}
return; // Выход из start()
}
Spc. Prescribed as follows.
int start() // Спец. функция start
{
//--------------------------------------------------------------- 2 --
int Handle;
string File_Name="News.csv", // Имя файла
datetime Dat_DtTm; // Дата и время события(дата)
//--------------------------------------------------------------- 3 --
Handle=FileOpen(File_Name,FILE_CSV|FILE_READ|FILE_WRITE,";");// Открытие файла
if(Handle<0){ ........
Good afternoon.
Can you tell me how to programmatically link 2 coordinate systems in a graph: (X,Y) and (time,price)? You need a label with coordinates (X,Y) that will always be at the minimum price on the chart.
Good afternoon.
Can you tell me how to programmatically link 2 coordinate systems in a graph: (X,Y) and (time,price)? You need a label with coordinates (X,Y) that will always be at the minimum price on the chart.
Thank you!
Can you tell me how to set a stop at the high or low of the bar where the trade is open?
If high, then High[ ] instead of stop, if low Low[ ], but keep two things in mind.
1.This is the spread and distance to the stop set by the dealer.
2. You cannot place a stop correctly on the bar that is forming. That is, High[0]. And only on previous bars. I.e. High[1], etc.