Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1410
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
Read the documentation and example code carefully. Your loop is not organised correctly.
Don't tell me that for and while loops work the same way. That's not the problem, it's the highlighted lines.Thanks, I've read it (that's where I started)
Everything works in my code, just a glitch in MT4, charts 8 but sees 7(
Unlikely. How many times have I blamed the platform, it always turns out to be wrong myself.
Why don't you try this?
Why don't you try this?
Same thing.
Why is the printing different? Different code?
How many charts are open, which ones? Symbol, period.
Unfolded/unfolded?Thanks, that's what I read (that's where I started).
Everything works in my code, just a glitch in MT4, charts 8 but sees 7(
Very bad reading. Probably like forced reading at school. I've read it but nothing has been imprinted on my brain.
Here 's an example. The purpose is different there, but still the enumeration of open charts doesn't change depending on the purpose of the enumeration.
Or here is the code
Why is the printing different? Different code?
How many charts are open, which ones? Symbol, period.
Unfolded/unfolded?Very bad reading. Must have been like forced reading at school. I mean, I read it, but nothing stuck in my head.
Here 's an example. The goal is different there, but still the enumeration of open charts does not change depending on the purpose of this enumeration.
Or here is the code
The issue is removed, the problem is solved by restarting the terminal
Help me avoid array out of range in this code
It's this location that's getting thrown out.
CopyBuffer
Возвращаемое значение
Number of copied array elements or -1 in case of error .
Note
When requesting data from an indicator, if the requested timeseries have not been built yet or need to be downloaded from the server, the function will immediately return -1, but the loading/building process itself will be initiated.
When requesting data from the Expert Advisor or a script, the loading from the server will be initiated if the terminal does not have these data locally, or the building of the required timeseries will begin if the data can be built from the local history, but they are not ready yet. The function will return the amount of data that will be ready when the timeout expires.
Check if you have bars_quantity there