Questions from Beginners MQL5 MT5 MetaTrader 5 - page 781
![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
Whether it's handles or objects of the "Trend.mqh::CiMA" class, you still need to create them all.
How to solve the problem in my case?
How do I solve the problem in my case?
Yes, of course.
Yes. Of course.
Bummer, of course(
Vladimir, you wrote to service-desk, because it shouldn't be like that, and it can't be, we must be doing something wrong that we need to create under a hundred handles for a simple Expert Advisor.Itshouldn't be like this, and it can't be, we must be doing something wrong that we need to create under a hundred handles for a simple Expert Advisor.
What's the problem? You know what an array is, don't you? A structure?
Of course, if you create 100 variables, one for each handle... ...that would be a real bummer.
What's the problem? You know what an array is, don't you? A structure?
Of course, if you create 100 variables, one for each handle... that'd be a real bummer.
Here, a structure indeed, but I can't figure out how to make one quickly, can I?
Here, really a structure, but I can't figure out how to put it together quickly, can I?
It goes something like this...
Colleagues, I'm having some trouble understanding it at all
It constantly falls outside the array array out of range. I've investigated and written so many codes that I keep getting the same mistakes. Please advise me if there is a place (a branch, an article) where I can find out how to correctly make loops that won't throw me out of the array. I lose a lot of time finding a bug ... sometimes I do not understand what I've fixed and why it works.
For example, the following code,if (q1[i] > q1[i+1]) q2[i]=1;
on q1[i+1]
in the on unit are
SetIndexBuffer(2,q1,INDICATOR_CALCULATIONS);
ArraySetAsSeries(q1,true);
Colleagues, I'm having some trouble understanding it at all
It constantly falls outside the array array out of range. I've investigated and written so many codes that I keep getting the same mistakes. Please advise me if there is a place (a branch, an article) where I can find out how to correctly make loops that won't throw me out of the array. I lose a lot of time finding a bug ... sometimes I do not understand what I've fixed and why it works.
For example, the following code,if (q1[i] > q1[i+1]) q2[i]=1;
on q1[i+1]
on unit are
SetIndexBuffer(2,q1,INDICATOR_CALCULATIONS);
ArraySetAsSeries(q1,true);
for (i = start ; i < rates_total-1;i++)
Once again, thank you!
Colleagues, MathSum function, description here
https://www.mql5.com/ru/docs/standardlibrary/mathematics/stat/mathsubfunctions/statmathsum
is not recognized in build 1643 . Do I have to tear everything down and update it?