A curious thing: when reading the date of the earliest minute bar(iBars(....) about 30000 bars) which is in the chart window, the value appears to be 1970. Although the bar there is somewhere from February last year.
Is this a specificity or is the history messed up?
Ivan Butko (iBars(....) about 30000 bars) which is in the chart window, the value turns out to be 1970. Although the bar is somewhere around February of last year.
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.
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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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