It returns almost the same values (the difference is only one bar), how is that possible?
2011.06.1800:03:45 CHFJPY (CHFJPY,M15) 384385
In idea one function should return how many bars to view on the current chart (for example 5000) and the other only the number that fits into the screen (in my case just over 380).
It returns almost the same values (the difference is only one bar), how is that possible?
In idea one function should return the total number of bars for viewing in the current chart (for example 5000) and the other should return only the number that fits into the screen (in my case just over 380).
is always 1 more than the number of the first (left) visible bar:
ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR)
The last bar (right) has number 0.
Unless the chart is scrolled. If the chart is "scrolled", <number of the first visible bar> = <number of visible bars> + <the shift of the chart in bars>-1.
And what you write:
...how many total bars to view yes the current chart ( e.g. 5000)...
is a bit different:
TerminalInfoInteger(TERMINAL_MAXBARS); // Максимальное количество баров на графике
About not opening the file size, and for the year 2010 and 2009 2008 does not want to open,
I tried to open a file created using this code but keeps getting an error message
2 значения - первое целое (хранит время в секундах)
второе дробное (цену или еще что),
Когда время (т.е. секунды) в файле совпадает с временем, текущим, используем второе значение
и выводим его. Все это я реализовал следующим образом - работает без косяков - пока :-)
double proverka()
{
handle= FileOpen("kor.bin", FILE_BIN|FILE_READ);
if(handle<0) Print("-----Неоткрывается :-)");
ulong file=FileSize(handle);
ulong N = 0.0;
double kor = 0.0;
datetime bar[1];
CopyTime(Symbol_1,NULL,0,1,bar);
ulong New = (ulong) bar[0];
while (N < file)
{
kor=FileReadDouble(handle);
N = FileTell(handle);
if (kor == New)
{
double ss = FileReadDouble(handle);
FileClose(handle);
return (ss);
break;
}
}
FileClose(handle);
return (kor);
}
Any time interval except 2011, 01, 01 opens the rest do not,
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Good afternoon, forum members.
Please help me to understand. The indicator does not appear on the chart for some reason - I don't know where the error is.
In general, it should be displayed on the chart like this:
But I just have nothing in the window of this indicator. MT4.
Here is the code of the indicator. Is there an error in the code or in something else?
Sorry, but you'd rather go to the MT4 website
http://forum.mql4.com/ru/
It's MT5.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Can anyone tell me what is the maximum allowed bin file size
which may be opened by advisor for reading, because 25 m with 3 mln.
It may be that 25 meters and 3 million tens of value will not be read, but 500.000 values will be read?
Sorry, but you'd rather go to the MT4 website
https://www.mql5.com/ru/forum
It's MT5.
Can anyone tell me what is the maximum permissible bin file size
which may be opened by the Expert Advisor for reading, because 25 m with 3 mln.
does not want to open, but opens with 500,000 values ?
Can anyone tell me what is the maximum permissible bin file size
which may be opened by the Expert Advisor for reading, because 25 m with 3 mln.
does not want to open, but it opens with 500,000 values?
It returns almost the same values (the difference is only one bar), how is that possible?
In idea one function should return how many bars to view on the current chart (for example 5000) and the other only the number that fits into the screen (in my case just over 380).
Build 466, Full 7 x64
The line
It returns almost the same values (the difference is only one bar), how is that possible?
In idea one function should return the total number of bars for viewing in the current chart (for example 5000) and the other should return only the number that fits into the screen (in my case just over 380).
Build 466, Fortock OS 7 x64
is always 1 more than the number of the first (left) visible bar:
The last bar (right) has number 0.
Unless the chart is scrolled. If the chart is "scrolled", <number of the first visible bar> = <number of visible bars> + <the shift of the chart in bars>-1.
And what you write:
...how many total bars to view yes the current chart ( e.g. 5000)...
is a bit different:
About not opening the file size, and for the year 2010 and 2009 2008 does not want to open,
I tried to open a file created using this code but keeps getting an error message
Any time interval except 2011, 01, 01 opens the rest do not,
What kind of problem?
is a little different:
I'm afraid that's not going to work.
For example, I've got 50000 bars checked in my settings but 11375 bars loaded in reality.
The method
And which number to use here.
ZS Here's what's onInit
And the rubbish in the history is not cleared...