[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 1082
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
I also have a stupid question. how did you know you were carrying ex4 ?
I don't understand where the error occurred during compilation: '(' - function definition unexpected C:\Program Files (x86)\Alpari MT4\experts\start4.mq4 (5, 20)
I don't understand where the error occurred during compilation: '(' - function definition unexpected C:\Program Files (x86)\Alpari MT4\experts\start4.mq4 (5, 20)
//--------------------------------------------------------------------
int start() // Спец. функция start
{
int New_Time;
bool Fun_New_Bar() // Ф-ия обнаружения ..
{ // .. нового бара
static datetime New_Time=0; // Время текущего бара
bool New_Bar=false; // Нового бара нет
if(New_Time!=Time[0]) // Сравниваем время
{
New_Time=Time[0]; // Теперь время такое
New_Bar=true; // Поймался новый бар
Alert("Сформировался новый бар"); // Вывод на экран
return; // Выход из start()
}
}
//--------------------------------------------------------------------
I don't understand where the compilation error is: '(' - function definition unexpected C:\Program Files (x86)\Alpari MT4\experts\start4.mq4 (5, 20)
//--------------------------------------------------------------------
int start() // Спец. функция start
{
int New_Time;
bool Fun_New_Bar() // Ф-ия обнаружения ..
{ // .. нового бара
static datetime New_Time=0; // Время текущего бара
bool New_Bar=false; // Нового бара нет
if(New_Time!=Time[0]) // Сравниваем время
{
New_Time=Time[0]; // Теперь время такое
New_Bar=true; // Поймался новый бар
Alert("Сформировался новый бар"); // Вывод на экран
return; // Выход из start()
}
}
//--------------------------------------------------------------------
You should read the textbook, don't be lazy. Functions are placed outside the start() function
And you have to write them inside the start() function:
Listen, but help me understand why when I try to drag an ex4 file onto a chart I get nothing, what could be wrong, please?
Listen, but help me understand why when I try to drag an ex4 file onto a chart it doesn't work, what could be wrong, please?
Put the file here.
So the file is compiled with an error, or there is an error when the file is executed, check the log.
Tk write a ready-made one, because I'm just a beginner...
So the file is compiled with an error, or there is an error when the file is executed, check the log.