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

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
Where is it written that there can't be a history sub-loading along with the new bar?
Where is it written that the history should be tracked?
While it is being loaded, the indicator calculations can be disregarded - because there is no complete history (bars can appear anywhere).
Hence, the conclusion - only after all of the bars have been built can there be a new bar.
Otherwise all the bars are "old".
Didn't help :(
show the code.
you need to see what you've built.
Taras!!! The man is asking about MQL5!!! And MT5 is indexed from left to right... It turns out that you should not count 1 bar, but rates_total-2
Where is it written that you have to monitor the history loading?
While it is being loaded, the indicator calculations can be disregarded - because there is no complete history.
Hence the conclusion - only after all the bars have been built can there be a new bar.
Otherwise all of the bars are "old".
Please advise how to do it with history.
The thing is, it is planned, to check something on the history of course.
I have some observations and would like to use buffers for arrows.
But that will come later.
show the code.
Taras!!! The man is asking about MQL5!!! In MT5, indexing is from left to right... It turns out that rates_total-2, and not 1 bar must be counted.
No, no, prev_calculated and rates_total do not depend on it.
no-no, prev_calculated and rates_total do not depend on this
What is the relationship of prev_calculated and rates_total to the fact that you propose to read the opening and closing of the first bar on the left?
What is the relation of prev_calculated and rates_total to the fact that you propose to read the opening and closing of the first bar on the left?
i am not suggesting to read the closing bar on the left, this is not my code)
mine only
Didn't help :(
Yes, you either need to change the direction of the arrays or take the rates_total-2 index instead of 1
I'm not suggesting reading the bar close on the left, that's not my code)
It's just mine.
It's unseemly to lie so blatantly. You delete your post and blame your illiteracy on someone else. Liar.