![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
OK. Deinit doesn't do the zeroing either.
You still haven't answered the question, what do you mean by zeroing the buffers?
The client terminal does not zero the contents of the indicator buffers. Zeroing shall be provided by the programmer.
The buffers are cleared automatically when the indicator is unloaded
You still haven't answered the question, what do you mean by zeroing the buffers?
The client terminal does not zero the contents of the indicator buffers. Zeroing shall be provided by the programmer.
Buffers are deleted automatically when loading an indicator
It doesn't work in either init or deinit.
This does not work in either init or deinit.
Once again.
You should initialize the array only before total recalculation. And that's only if you fill the array selectively and not element by element
One more time.
You only need to initialize the array before the total recalculation. And that's only if you fill the array selectively, not one element after another
This doesn't work in either init or deinit.
Why do you need it in deinit? And why would a dynamic indicator array need to be initialised?
Have you read the problem?
Why do we need it in deinit? And why initialize the dynamic array of the indicator?
Because somewhere you have to. Inite says you can't.
Because only 0 bar is counted. After closing the terminal and opening it after a couple of candlesticks the 0 bar is calculated + one more bar with an offset for the time the terminal was closed.
One more time.
You only need to initialise the array before total recalculation. And that's only if you fill the array selectively and not in a row element by element
Nice. I only fill in element 0.
If you don't understand the problem, I can describe it again.
Because somewhere you have to. Inite says you can't.
Because only 0 bar is counted. After closing the terminal and opening it after a couple of candlesticks, it turns out that 0 bar is calculated + another one with a shift by the time the terminal was closed.
Actually the zero bar was calculated correctly, but then the history was loaded. And a new zero bar has been calculated.
Here. I do a buffer zeroing for this. Inite has already said you can't do that.
I want to deinit. But it doesn't work there either. Why?