[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 659
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
What makes you think i is an array? If it were an array element, the entry would look like this
and this is an ordinary variable.
Please explain the difference between the writing and the writing:
If you want to compare 2 values, you write
If you want to fill the buffer, you'll count in a loop
If you want to compare 2 values, you will write
If you want to fill the buffer, you will read in the loop
What makes you think i is an array? If it were an array element, the entry would look like this
and this is an ordinary variable.
Decipher what you wrote, please, if you don't mind.
Decipher what you wrote, please, if you don't mind.
There was a question:
Please explain the difference between spelling:
double DeM5_1 =iDeMarker(NULL,PERIOD_M5, 14,1);
и
double DeM5[i] =iDeMarker(NULL,PERIOD_M5, 14,i);
I understand that the first one explicitly specifies the bar number from which the value is taken, while the second one creates a certain array, the element i of which points to the bar number.
The advantages and disadvantages of the two methods are of interest... What is the advantage, speed, convenience and so on and so forth... Thank you.
There was a question:
Correspondingly, the answer is that i is not an array element but an index of an array element. I didn't get it right away that it was a search loop and I meant the DemM5 array, but i is just a variable in this case too. But if we are speaking of the loop, what does the first entry have to do with it? Apparently we just misunderstood each other...What I'm interested in is this
It's a mystery to me.
Although it has every right to exist. Depending on the type.
So I'm interested in just this
It's a mystery to me.
Although it has every right to exist. Depending on the type.
some array - array_name (for example)
...element i of which points to bar number.
For example, array_name[5] = { 4, 7, 22, 57}
And then in loop we don't get all values of iDeMarker() from history, but only necessary bars.
double DeM5[i] =iDeMarker(NULL,PERIOD_M5, 14,array_name[i]);
Wrote that we just didn't understand each other :)))) sorry...
some array - array_name (for example)
For example, array_name[5] = { 4, 7, 22, 57}
And then in loop we don't get all values of iDeMarker() from history, but only necessary bars.
double DeM5[i] =iDeMarker(NULL,PERIOD_M5, 14,array_name[i]);
I told you, they just don't understand each other :))) sorry...
No problem. Just wanted to understand, too. Thanks, man. Got it. Every method has a right to exist. As long as the author understands it. I hear you. Thanks again.
No problem. Just wanted to understand, too. Thanks, man. Got it. Every method has a right to exist. As long as the author understands it. I hear you. Thank you again.