Hello) Please tell me if CopyTime should return -1 or 0 if there is no bar in the chart. I've read the help, I didn't see anywhere that it returns the closest lower bar, which doesn't even fall into the requested period, if there is no requested one.
what am I doing wrong, it returns the closest bar at 14 minutes(?
ResetLastError();
datetime t[];
int rest = CopyTime("LTCUSD",PERIOD_M1,D'2017.10.16 03:13:00',1,t); // 13 минута бар естьint error = GetLastError();
Print(" rest = ",rest," error = ",error," дата = ",t[0]);
ResetLastError();
rest = CopyTime("LTCUSD",PERIOD_M1,D'2017.10.16 03:14:00',1,t); // 14 минута БАРА НЕТ // здесь возвращает меньший 13 минуту
error = GetLastError();
Print(" rest = ",rest," error = ",error," дата = ",t[0]);
ResetLastError();
rest = CopyTime("LTCUSD",PERIOD_M1,D'2017.10.16 03:15:00',1,t); // 15 минута бар есть
error = GetLastError();
Print(" rest = ",rest," error = ",error," дата = ",t[0]);
There was some information about a new type of MQL programs - services (MQL5/Services). I can't find any announcements on the search. What are the plans or is it already available?
Stanislav Korotky: Some information about a new type of MQL-services (MQL5/Services) was in the past. I can't find any announcements on the search. What is the plan or maybe it is already available?
Not yet available. They are promising an update by the end of this month. We'll see what it will be.
What is the error:
invalid EX5 file (7) global initialization failed global initialization critical erroroccurs when downloading an EA from the Marketplace.
Build 1653, Windows 7 64.
Same Expert Advisor directly - works fine.
What is the error:
occurs when downloading an EA from the Marketplace.
Build 1653, Windows 7 64.
Same Expert Advisor directly - works fine.
Can I have a link to an advisor?
https://www.mql5.com/ru/market/product/326
https://www.mql5.com/ru/market/product/326
Downloaded from website/terminal. No errors.
If product file downloaded, try deleting it and reloading the product.
Downloaded from website/terminal. No errors.
If the product file downloaded, try deleting it and reloading the product.
Tried all standard procedures
It's from a client, connected to it via tyumviefer.
Now he's got XP.
tried all the standard procedures
It's from a client, connected to it via tyumviefer.
Now I looked at his XP.
What is the bit rate and version of the terminal ?
What is the bit rate and version of the terminal ?
1653 32 as I understand it.
Hello) Please tell me if CopyTime should return -1 or 0 if there is no bar in the chart.
I've read the help, I didn't see anywhere that it returns the closest lower bar, which doesn't even fall into the requested period, if there is no requested one.
what am I doing wrong, it returns the closest bar at 14 minutes(?
Some information about a new type of MQL-services (MQL5/Services) was in the past. I can't find any announcements on the search. What is the plan or maybe it is already available?
Not yet available. They are promising an update by the end of this month. We'll see what it will be.