[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 399
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
Здравствуйте, решил занятся изучением MQL4, начал работать с массивами, возник вопрос: при выводе элемента Time[] выходит такое вот значение 1264149780, вместо вида 2006.11.01 14:35 к примеру, или возможно 1264149780 это координата?
read https://docs.mql4.com/ru/convert/TimeToStr
1264149780 is the number of seconds elapsed since 01.01.1970
look for more logical errors.
SRC is like this:
Found the logical error everything matches.Do you want a script or an indicator?
As an example of an indicator
Do you want a script or an indicator?
As an example of an indicator
This script will be later in the EA - as a script it was written to check the performance of this piece and the correctness of the numbers it produces for subsequent processing.
>>Thank you for the attached indicator, can you explain what it's about?
This script will be later on in the EA - as a script it was written to check the performance of this piece and the correctness of the numbers it produces for subsequent processing.
Thank you for the attached indicator - can you explain - what is it about?
// Build WPR
for (i=limit;i>0;i--) WPR[i]=iWPR(NULL,0,WPR.Period,i);
//first smoothing
for (i=limit;i>0;i--) EMA1[i]=iMAOnArray(WPR,0,EMA.1.Period,0,MODE_EMA,i);
// Second smoothing
for (i=limit;i>0;i--) EMA2[i]=iMAOnArray(EMA1,0,EMA.2.Period,0,MODE_EMA,i);
We should create an indicator that can be later used in the Expert Advisor.
It will be better and faster.
Can you please tell me what the problem is? I give two pieces of code that close all trades of the same direction:
and the second one:
Seems to be the same, only the second should close trades starting with the last, and the first should close starting with the first.
So, the first works correctly, all trades are closed, but the second closes only the very last trade and the rest are not. Why?
Подскажите, пожалуйста, в чем тут загвоздка? Даю два куска кода, которые закрывают все сделки одного направления:
и второй:
Вроде бы все тоже самое, только второй должен закрывать сделки, начиная с последней, а первый - начиная с первой.
Так вот, первый работает правильно, все сделки закрываются, а вот второй закрывает только самую последнюю сделку, а остальные - нет. Почему?
Strange use of return, conditions and if nesting can be reduced.
Can you tell me how to make zigzag work in tester. I am running a script looking for pivot points but it shows the results from the window of real quotes, it is not the first indicator that does that. How to fight it.
A zigzag thrown over the graph in visualisation mode looks into the future.
I can give you a zigzag that doesn't look into the future.