Questions from Beginners MQL5 MT5 MetaTrader 5 - page 791
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
Возвращаемое значение
The number of copied array elements or -1 in case ofan error.
There's also ArraySize...
As it happens, I've never encountered an array where not all elements are copied, it either copies all the requested elements, or it doesn't copy and -1
P.S. Ah, I see why you wroteArraySize, I originally wrote it the same way, but then replaced it with Bars for clarityThanks, I didn't know about the extended Bars functionality in MT5.
Thanks, I didn't know about the extended Bars functionality in MT5.
It is now exactly the same in MT4 to your surprise ;)
It is now exactly the same in MT4 to your surprise ;)
Especially surprising is the fact that there is no mention of this in the MT4 helpdesk.
int Bars
Количество баров на текущем графике.
Пример:
int counter=1;
for(int i=1; i<=Bars; i++)
{
Print(Close[i-1]);
}
Смотри также
Функция Bars, iBars
Especially surprising is the fact that there is no mention of this in the MT4 Help.
int Bars
Количество баров на текущем графике.
Пример:
int counter=1;
for(int i=1; i<=Bars; i++)
{
Print(Close[i-1]);
}
Смотри также
Функция Bars, iBars
Alexei, even in your post there is a link with examples and explanations.
Exactly the same as in mql5Alexei, even in your post there is a link with examples and explanations.
Exactly the same as in mql5So I'm talking about the help in ME!
So I'm talking about the help in ME!
And in ME, where does the help come from? From the same website where all the links in these posts are from.
And in ME, where does the help come from? From the same site where all the links in these posts are from.
There's a file there which is updated periodically...
There's a file that's updated periodically...
And it's all the same