Questions from Beginners MQL5 MT5 MetaTrader 5 - page 113
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
Hello, I can't write an array.
Every day a Ros level appears, if the price (Tick) touches it then it becomes invalid, i.e. we don't remember it.
The task.
If a tick has not touched the Ros level, we keep the value of the Ros price in the array.
If a tick has touched Ros, we delete the Ros price value from the array.
I tried to write something, but it's just nonsense. I cannot even add the index value to the array. Not to mention adding the index itself))
What is the value of the Size variable?
Hello, I can't write an array.
Every day a Ros level appears, if the price (Tick) touches it then it becomes invalid, i.e. we don't remember it.
The task.
If a tick has not touched the Ros level, we keep the value of the Ros price in the array.
If a tick has touched Ros, we delete the Ros price value from the array.
I tried to write something, but it's just nonsense. I cannot even add the index value to the array. Not to mention adding the index itself))
So I can't write the index of the array to increase as the values of Ros accumulate. Size is not equal to anything yet))
The array is needed to accumulate non-crossed values of Ros, and to remove them from the array as they are crossed.
What does "not equal to anything" mean? What value does the Size variable contain? How many iterations in the for loop ?
The question is open, we need indexes to increase as Ros values are filled, it's kind of dynamic. if there are 5 Ros values, then Size = 5. I don't know how to do it.
https://www.mql5.com/ru/docs/array/arrayresize
is it something like this?