Trying to organise a tic for an expert - no luck. The weekend took me by surprise. How to organise it properly? For example, we have the following elementary Expert Advisor:
Trying to organise a tic for an expert - no luck. The weekend took me by surprise. How to organise it properly? For example, we have the following elementary Expert Advisor:
- how to simulate ticks and start a timer?
I understand it's a weekend, but in the market the schedule of holidays doesn't coincide with those in RF, and one still needs to work...
Why suffer for something you don't have to?
there will be an official release of the new builds around january 20th and.
There is a timer implemented, with what frequency you need with that and will be called.
It is better to spend your energy on studying the 5, so as not to have thousands of stupid questions.
This is for indication until the next data parsing. At 03:00 the parsing is started from the EA itself by a third-party script, at 00:00 the data is displayed on the chart, and everything is started again with the configured data update rate in seconds. Would a countdown display like this be easier to implement on a five?
Unfortunately, I am not competent in this matter, but I have saved https://forum.mql4.com/ru/59441 to read it at your leisure, maybe it will be useful to you.
ALXIMIKS: I've saved https://forum.mql4.com/ru/59441 to read at your leisure, maybe you'll find it useful.
I have already implemented the parsing itself, why. I am interested in how to emulate tick to make this timer work. I need time to retrain to mql5 which I will lose and time is money.
Trying to organise a tic for an expert - no luck. The weekend took me by surprise. How to organise it properly? For example, we have the following elementary Expert Advisor:
- how to simulate ticks and start a timer?
I understand that it's weekend, but in the market the schedule of holidays doesn't coincide with the one in RF, and I have to work...
//=================================================================================================================================================// 4.7. Функции для управления обновлением графика.//=================================================================================================================================================// 4.7.1. Функция запускает обновление всех графиков с указанным периодом. Если обновление уже запущено, то функция меняет период обновления графиков.// Останавливается обновление функциями "ServiceStopRefreshChart()" или "ServiceStopRefreshAllCharts()" или закрытием графика.void ServiceRefreshAllCharts(int nPeriodMilliSec); // Период обновления графика в миллисекундах.//=================================================================================================================================================// 4.7.2. Функция запускает обновление всех графиков однократно. Вызов функции при работающих других режимах останавливает обновление всех графиков.void ServiceRefreshAllOnceCharts();
//=================================================================================================================================================// 4.7.3. Функция запускает обновление указанного графика с указанным периодом. Если обновление уже запущено, то функция меняет только период обновления графика.// Останавливается обновление функциями "ServiceStopRefreshChart()" или "ServiceStopRefreshAllCharts()" или закрытием графика.void ServiceRefreshChart(int hwndChart, // Системный дескриптор обновляемого графика.int nPeriodMilliSec); // Период обновления графика в миллисекундах.//=================================================================================================================================================// 4.7.4. Функция запускает обновление автономных графиков с указанным периодом. Если обновление уже запущено, то функция меняет период обновления графиков.// Останавливается обновление функциями "ServiceStopRefreshChart()" или "ServiceStopRefreshAllCharts()" или закрытием графика.void ServiceRefreshOfflineCharts(int nPeriodMilliSec); // Период обновления графика в миллисекундах.//=================================================================================================================================================// 4.7.5. Функция запускает обновление online-графиков с указанным периодом. Если обновление уже запущено, то функция меняет период обновления графиков.// Останавливается обновление функциями "ServiceStopRefreshChart()" или "ServiceStopRefreshAllCharts()" или закрытием графика.void ServiceRefreshOnlineCharts(int nPeriodMilliSec); // Период обновления графика в миллисекундах.//=================================================================================================================================================// 4.7.6. Функция останавливает обновление указанного графика.void ServiceStopRefreshChart(int hwndChart); // Системный дескриптор графика, на котором останавливается обновление.//=================================================================================================================================================// 4.7.7. Функция корректно останавливает обновление всех графиков при bTerminate = FALSE, иначе функция завершает обновление аварийно.void ServiceStopRefreshAllCharts(int bTerminate); // Флаг аварийной остановки потоков обновления графиков.// FALSE - потоки останавливаются корректно, TRUE - потоки останавливаются аварийно.//=================================================================================================================================================// 4.7.8. Функция эммулирует тик для эксперта на указанном графике.void ServiceTickExpert(int hwndChart); // Системный дескриптор окна графика, для эмуляции тика для эксперта.//=================================================================================================================================================// 4.7.9. Функция эммулирует тик для индикаторов на указанном графике.void ServiceTickIndicators(int hwndChart); // Системный дескриптор окна графика, для эмуляции тика для индикаторов.//=================================================================================================================================================
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.
alexey1979621, why don't you first try to write an EA on one pair without errors, and then multi-currency ones?
Trying to organise a tic for an expert - no luck. The weekend took me by surprise. How to organise it properly? For example, we have the following elementary Expert Advisor:
- how to simulate ticks and start a timer?
I understand that it's weekend, but in the market the schedule of holidays doesn't coincide with those in RF, and there's work to be done...
Trying to organise a tic for an expert - no luck. The weekend took me by surprise. How to organise it properly? For example, we have the following elementary Expert Advisor:
- how to simulate ticks and start a timer?
I understand it's a weekend, but in the market the schedule of holidays doesn't coincide with those in RF, and one still needs to work...
Why suffer for something you don't have to?
there will be an official release of the new builds around january 20th and.
There is a timer implemented, with what frequency you need with that and will be called.
It is better to spend your energy on studying the 5, so as not to have thousands of stupid questions.
There's a timer implemented
This is for indication until the next data parsing. At 03:00 the parsing is started from the EA itself by a third-party script, at 00:00 the data is displayed on the chart, and everything is started again with the configured data update rate in seconds. Would a countdown display like this be easier to implement on a five?
Happy New Year, everyone!
Another rumour for help.
The "H" indicator is not showing any lines.
I can't figure out what this is about.
The code for the "H" indicator is shown above.I've saved https://forum.mql4.com/ru/59441 to read at your leisure, maybe you'll find it useful.
I have already implemented the parsing itself, why. I am interested in how to emulate tick to make this timer work. I need time to retrain to mql5 which I will lose and time is money.
Hello again!
Happy New Year, everyone!
Another rumour for help.
The "H" indicator is not showing any lines.
I can't figure out what this is about.
The code for the "H" indicator is shown above.Extreme values are coming out something as a result of the calculation...
Exceptional values come out something as a result of the calculation...
Do this and the limit values evaporate, but the problem remains.
Trying to organise a tic for an expert - no luck. The weekend took me by surprise. How to organise it properly? For example, we have the following elementary Expert Advisor:
- how to simulate ticks and start a timer?
I understand that it's weekend, but in the market the schedule of holidays doesn't coincide with the one in RF, and I have to work...
Library.