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
I will try to explain again (on my fingers):
What does prevtime have to do with it?
I am asking why it doesn't work.
What does this have to do with prevtime?
I'm asking why it doesn't work.
And how do you know it's not working? How do you check?
And why initialize the indicator buffers before unloading it? It's already unloaded, isn't it?
Indicator buffers should be initialized when all indicator values are fully recalculated:
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?
What does init() and deinit() have to do with it? The operation is needed in quite a different place. I will repeat it again. After the calculation, history was loaded.
I made a working version.
How do you know if it's not working? How do you check?
What does init(), deinit() have to do with it? The operation is needed elsewhere. I'll repeat. After calculation the history was loaded.
Made a working version.
I still got it right the first time on your recommendation.
I'm wondering why the deinit doesn't work to zero the arrays?
https://forum.mql4.com/ru/65066/page2#1015138
You gave a link to code that works in OnCalculate. I asked about how you know that initialization in DeInit doesn't work. Let me specify, just in case, that after OnDeinit() nothing from indicator code works (neither OnInit(), nor OnCalculate()). Thus, you can check the fact of arrays zeroing only in OnDeinit() itself.
You gave a link to code that works in OnCalculate. I asked about how you know that initialization in DeInit doesn't work. Let me specify, just in case, that after OnDeinit() nothing from indicator code works (neither OnInit(), nor OnCalculate()). Therefore, you can check the fact of zeroing of arrays only in OnDeinit() itself.
I have provided a link to
OperationOpened chart-attached M1 indicator - closed terminal - opened it in a couple of minutes. The result is on screenshots.
This is how I test it.
I still got it right the first time on your recommendation.
I'm wondering why deinit doesn't work with zeroing of arrays?
Or does deinit not work when the terminal is closed?
It works, but there is no point in clearing the indicator buffers - they are not saved.
Why?
Why is the value of buffer 0 filled saved but not zeroed?