It's not imposed by the developers, but by one moderator. As for the BB values, so Artem told you that it's easier to get everything directly... the sequence is like this...
Declared Handle variables and arrays to get indicator values. If necessary, 3 at most. If we don't need an average, two arrays will be enough.
In OnInit() we received the indicator handle...
In OnTick() or in some other function CopyBuffer() for each line separately, as many as necessary.
From these arrays you get the values of indicator lines on those bars which are interesting...
THAT'S IT. Why bother with OOP¿¿¿¿¿? Unfortunately, I can't answer your question directly, because I'm not using it. It's easier for me as I described. There are only 4 actions.
Please tell me why it does not work in Inite? And how do I make it work?
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.
Yeah and I looked it up to answer you too.
I couldn't - I was writing from my phone and it's quicker just to write the question :)
It's not imposed by the developers, but by one moderator. As for the BB values, so Artem told you that it's easier to get everything directly... the sequence is like this...
THAT'S IT. Why bother with OOP¿¿¿¿¿? Unfortunately, I can't answer your question directly, because I'm not using it. It's easier for me as I described. There are only 4 actions.
Please tell me why it does not work in Inite? And how do I make it work?
Can you tell me why it doesn't work in the Inite? And how do I make it work?
iBands - Technical Indicators - MQL5 Reference - Algorithmic/Automatic Trading Language Reference for MetaTrader 5
so why isn't it working?
so why isn't it working?
Do you want to talk? - Or do you want to work on yourself?
Do you want to talk? - Or would you like to work on yourself?
I see. Thank you. Can anyone else suggest something?
Can you tell me why it doesn't work in the Inite? And how do I make it work?
Because the indicator has not yet been calculated.
https://www.mql5.com/ru/docs/series/barscalculated
the OnInit() section is not the best place to get the terminal environment, I think it works logically and correctlybecause the indicator has not yet been calculated
https://www.mql5.com/ru/docs/series/barscalculated
👍
the OnInit() section is not the best place to get the terminal environment, I think it works logically and correctlyInite because you need to do calculations on history at startup, added a wait as in the example, all is fine, thanks
added a wait, as in the example, everything is fine.
Just don't be surprised when it stops workingor worksintermittently.