[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 371
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
All even((((
Sorry, I got confused - you have to put 1 there, then it will be correct. I mean the Close/Close price on the chart will match the price in the function.
HOORAY! It's working!!!!
Thank you very much!
Check it out!
Check it out!
Well, finally! Read about it here. Only in the Expert Advisor and script startup functions with waiting. In all other places it is strictly prohibited.
Your code does not fit the standards of MQL4. Also, it was written somewhere that the waiting time in the ininit and deinit functions during a system call is limited to 2.5 seconds. Then the function is forcibly terminated.
Everything works. Here's the code for the real time mini system. Outside the start() function. Although of course it's absolutely not principal to put it in init().
Below is the code checked on the working terminal; the order opens and all the alerts are written in the message window. Function Sleep() also
Function Sleep() works fine too. I checked it with 30 sec waiting time - Sleep(30000). Although such a wait is absolutely unnecessary, 50 ms is enough.
Question about arrays.
There are three one-dimensional arrays:
1. закрытие бара
Close[i]={Close_1,Close_2,...,Close_i};
2. открытие бара
Open[i]={Open_1,Open_2,...,Open_i};
3. его индекс
Index[i]={1, 2, ..., i};
Задача: необходимо организовать двумерный массив mas[i,2], отвечающий условиям
mas[i,0]= |Close_i-Open_i|;
mas[i,1]=i;
Как это правильно сделать?
Arthibald:
2.... what to do ?1. У меня такая проблема, вчера зарегистрировался на МТ 4, начал ознакамливатся и эксперементировать на демо. С утра решил продолжить изучать МТ4, но графики остановились на отметке времени 6 мая 23:57, ни помогает ни перезагрузка компа, не переутановка программы,...
1. The world has collapsed, the market is up - look at the day of the week... :-)) ALL NORMAL PEOPLE HAVE THE WEEKEND OFF... :-)))
2. rest... :-)))
1. The world has collapsed, the market is up - look at the day of the week...:-)) ALL NORMAL PEOPLE HAVE THE WEEKEND OFF... :-)))
2. rest...:-)))