The indicator still changes the colouring of the chart. If you restore the standard one and tap through iCustom it re-colours the chart in its own way again.
It means we have values in the buffers, it's already good. Then try to find the value not on the 1st bar but slightly farther, on 2-3 bars, or vice versa, on 0. You cannot say anything without having seen the code.
guys please explain why when you increase the step of the parameters during optimization the number of passes at the bottom right of the terminal is not reduced, i.e. the number is the same as in a more detailed optimization what could be the reason and the same time as in a more detailed optimization in general step does not help reduce the time for optimization why? and how to speed up optimization in general?
I have been struggling with webrequest (get) for a long time, first using mql4 and now using mql5.
The solution is as follows: I need an onTick to copy from the site the prices of some exotic crosses. My broker, unfortunately, does not have them. The example of the cross is on the site below:
Please help. I'm almost ready to pay for the solution of this problem: Can you imagine how far it goes?))
I have been struggling with webrequest (get) for a long time, first using mql4 and now using mql5.
The solution is as follows: I need an onTick to copy from the site the prices of some exotic crosses. My broker, unfortunately, does not have them. The example of the cross is on the site below:
Please help. I'm almost ready to pay for the solution of this problem: Can you imagine how far it goes?))
Good luck to all ! BugRiver
/// Для MQL 4// url - адрес страницы сайта// timeot - время в течении которого будет ожидаться ответ (мс)// webData - сообщение-ответ на запрос т.е. данные страницы сайта в виде текста// cut - количество отбрасываемых символов от начала сообщения-ответа///// Функция возвращает - true в случае, если удалось получить сообщение-ответ на запрос.bool ReadURL(conststring url, int timeout, string &webData, int cut)
{
char
myMessage[],
webMessage[];
string sWebTitle;
if(url == NULL)
{
Print("URL: NULL");
returnfalse;
}
ResetLastError();
// метод HTTP, url-адрес, cookie, referer, таймаут, массив тела HTTP-сообщения, размер массива data[] в байтах, массив с данными ответа сервера, заголовки ответа сервераWebRequest("GET", url, NULL, NULL, timeout, myMessage, 0, webMessage, sWebTitle);
if(ArraySize(webMessage) == 0)
{
Print("В качестве ответа получено пустое сообщение.");
Print("URL: ", url);
returnfalse;
}
webData = CharArrayToString(webMessage, cut);
Print("URL: ", url);
Print("Title: ", sWebTitle);
returntrue;
}
Then you search for the required data from the variable you received the message-response with the help of text functions. It is best to view the message-response in your browser, i.e. go to the required page and open the source code of the page. Find the required data there, and write a unique filter in the programme.
I have not worked with Investing in this way and I think this will be problematic. They made their site especially slow for those who do not have a subscription. Therefore it is better to find another source of quotes for automatic reading from program code.
PS> You can't call WebRequest in the indicator. So you will have to arrange the connection between the indy and the EA or the indy and the looped script, to deliver the data to the indy.
I made the code, or rather a parody of it, during half a day of studying and studying, it generates error "return value of 'OrderSend' should be checked".
I made the code, or rather a parody of it, during half a day of studying and studying, it generates error "return value of 'OrderSend' should be checked".
Как правильно использовать функцию обработки ошибок, чтобы при возникновении непреодолимой ошибки при отправки ордера, эксперт перестал делать запросы на отправку ордера.
PLEASE tell me how to write buy/sell conditions, if I need to take data from indicator buffer 1 and 2 empty - to buy, not empty buffer 1 and 2 - to sell.
Forgot, thank you for your attention.
A new trick for me. Here's the result.
The indicator still changes the colouring of the chart. If you restore the standard one and tap through iCustom it re-colours the chart in its own way again.It means we have values in the buffers, it's already good. Then try to find the value not on the 1st bar but slightly farther, on 2-3 bars, or vice versa, on 0. You cannot say anything without having seen the code.
Gentlemen, Greetings!
I have been struggling with webrequest (get) for a long time, first using mql4 and now using mql5.
The solution is as follows: I need an onTick to copy from the site the prices of some exotic crosses. My broker, unfortunately, does not have them. The example of the cross is on the site below:
Please help. I'm almost ready to pay for the solution of this problem: Can you imagine how far it goes?))
Good luck to all ! BugRiver
How to get a variable of string type in EA, if dll function call returns only pointer to string
Link to documentation
Gentlemen, Greetings!
I have been struggling with webrequest (get) for a long time, first using mql4 and now using mql5.
The solution is as follows: I need an onTick to copy from the site the prices of some exotic crosses. My broker, unfortunately, does not have them. The example of the cross is on the site below:
Please help. I'm almost ready to pay for the solution of this problem: Can you imagine how far it goes?))
Good luck to all ! BugRiver
I have not worked with Investing in this way and I think this will be problematic. They made their site especially slow for those who do not have a subscription. Therefore it is better to find another source of quotes for automatic reading from program code.
PS> You can't call WebRequest in the indicator. So you will have to arrange the connection between the indy and the EA or the indy and the looped script, to deliver the data to the indy.
I made the code, or rather a parody of it, during half a day of studying and studying, it generates error "return value of 'OrderSend' should be checked".
Can someone help me figure this out?
I made the code, or rather a parody of it, during half a day of studying and studying, it generates error "return value of 'OrderSend' should be checked".
Can someone help me figure it out and tell me how to create an EA?
I am fine. Still need to read about the error handling function and add to the code.
https://www.mql5.com/ru/forum/64058
It's OK. All that's left is to read up on the error handling function and add it to the code.
He won't find the error, you tell him right away:
Yes, he will not find an error, you immediately tell me:
OK.
after each command to open / close any order, add this line:
and place the called function after the EA code:
I am writing an EA using the Ma_C indicator.
PLEASE tell me how to write buy/sell conditions, if I need to take data from indicator buffer 1 and 2 empty - to buy, not empty buffer 1 and 2 - to sell.
I would be very grateful for any help.