Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1932

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
It doesn't work likethis?
For example, ZeroMemory().
Thank you very much! I will try
January 1, 1970 is a null value in datetime type.
January 1, 1970 is a null value in datetime type.
I don't quite understand.
Please tell me why iTime(Symbol(), PERIOD_M1, iBars(Symbol(),PERIOD_M1)) = 1970.01.01 00:00:00 ?
Not quite clear.
Please tell me why iTime(Symbol(), PERIOD_M1, iBars(Symbol(),PERIOD_M1)) = 1970.01.01 00:00:00 ?
The iBars() function returns the number of bars, but they are numbered starting from zero. If you put the
you will get an error of array overrun.
Check it this way
The iBars() function returns the number of bars, but they are numbered from zero. If you put
at the beginning of the code, you will get an error of array overrun.
Check it this way!
Thank you!
It works!
Colleagues, I'm stumped. I need some help.
I have a normally working indicator, I made it from two, but that's not the point. I want to hide the first block of external variables, but when I remove any input in this block after compilation, the terminal with the indicator installed on the chart hangs.
The code fragment from line 76 to 86
It also hangs if I move all this block lower than other variables and even if I move outermost variables up or down:
If I change the order of the variables within the block, it compiles normally. The terminal does not freeze.
I don't understand what's going on. Maybe I don't see something obvious, my eye has blurred ((( I attach the code
P.S. The issue has been resolved, the code has been removed.Colleagues, I'm stumped. I need some help.
I have a normally working indicator, I made it from two, but that's not the point. I want to hide the first block of external variables, but when I remove any input in this block after compilation, the terminal with the indicator installed on the chart hangs.
The code fragment from line 76 to 86
It also hangs if I move all this block lower than other variables and even if I move outermost variables up or down:
If I change the order of the variables within the block, it compiles normally. The terminal does not freeze.
I don't understand what's going on. Maybe I'm missing something obvious, my eye is blurry (((( I'm attaching the code
Replace input with const
and rejoice !
replace input with const
and rejoice !
Doesn't help, still hangs the terminal when adding an indicator to the chart.
Doesn't help, terminal still hangs when adding indicator to chart.
Does it compile?
So if the parameter has an input attribute, it works, but if const, it hangs ?
there is no such a miracle