Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1467

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
Of course not, I meant that the array size is always known or can be known. And it can and must be controlled for index overrun.
You can control it, but it is not always necessary...
Controlling is possible, but not always necessary....
Hehe, then start after going beyond)))))
Here's a look...
Forum on trading, automated trading systems and testing trading strategies.
Questions from beginners MQL5 MT5 MetaTrader 5
Alexey Viktorov, 2023.06.27 21:19
What is the problem? Declare an array temp[] and copy 30 elements into it and look for the index of the minimum/maximum value. And if at the end there will be less than 30, it will copy how many are left. And in this case, I'd rather use the while() loop.
Why should I control the size of the temp[] array?
You should control the size of the array from where we copy to temp[], I don't argue... But why do I need to control the size of the array where we are looking for the maximum\minimum?
Yes, the terminal only pokes through the allowed ones explicitly.
Yeah, the terminal is only poking around the authorised ones.
So it's not the terminal that's poking around, it's the DLL.
So it's not the terminal that's going to get involved, it's the DLL.
A dll does not need an authorised host in mt. it is enough to allow the use of a dll in mt. and the dll itself can do absolutely anything.
Could you please tell me where this code is not working correctly? It reads records randomly as it wants, doesn't find everything, and gives new results at a new start.
I can't understand what rates_total and prev_calculated mean in the end.
The documentation says: The first parameter rates_total contains the number of bars available to the indicator for calculation, and corresponds to the number of bars available on the chart.
For example MA5, average of 5 bars, set to display 100 bars. Then the indicator will calculate from the 104th to the 100th bar and will start drawing the line from the 100th bar. Then rates_total=5, or 100, or 104?