Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 445
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
So read iCustom() right by the first loop index.
Another question is that you need data from current bar to the left. That's why I say - read from zero to the found one, but no more than rates_total-1.
Read only when limit>1
Other time there is no new data, and index of the bar you need will not change.
It does not, but the bar numbers of the nearest arrows in the commentary are correct
He doesn't want to.
Do you read what I write?
The other question is that you want data from the current bar to the left. That's why I say - read from zero to the found one, but no more than rates_total-1.
Read only at limit>1
Do you read what I write?
The other question is that you need data from the current bar to the left. That's why I say - read from zero to the found one, but no more than rates_total-1.
Read only at limit>1
Didn't I make it so?
if(limit>1)
{
limit=rates_total-1;
Isn't that what I did?
if(limit>1)
{
limit=rates_total-1;
This is what you did next:
What was I talking about?
What you have done next is this:
What was I saying?
Read at limit>1
I don't know how to do it right?
Read at limit>1
I don't know how to do it right?
I'm telling you, I don't know how to do it. Show me, please.)
I told you, I don't know how to do it. Show me, please.)
This cycle will only go to the bar you want (if found), or the whole story will go to the limit.
This cycle will only be up to the bar you want (if found), or for the whole story, up to the limit.
me, quite bad, shows nothing.
I'm really bad, it doesn't show anything.
I still don't get it: what do you want to find and display? Just in words - without code.
Here you are writing:
Hello, help me, please.
I want, at any time, to know the number of the bar where the indicator arrow is.
In the example, I tried to fill the buffer if the arrow is on the tenth bar.
Here is the question at once: why are you looking for it on the tenth bar? And in general, on which bar do you want? And which arrow? The very last one? Or the last two - the upper and the lower? Or know the bar of the desired arrow by its number from right to left?
This is not clear.
And attach the whole indicator, not OnCalculate()