
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
I do
Buffered separately and send asynchronously permanent
I do
Done, the weirdest thing ever, mentioned before - why do they need 5-50ms to copy all the chart-metrics data
Thats where the update method comes in
I do
Buffered separately and send asynchronously permanent
I do
Done, the weirdest thing ever, mentioned before - why do they need 5-50ms to copy all the chart-metrics data
Thats where the update method comes in
Nothing to add. Sounds like you are all set and done. Everything working perfectly, I assume.
Still only:
>>
1. The restriction within OnTimer(), while is not that big deal, since it mainly affects the ping-time. Once its reached, further messages can be handled instantly after this first access - <>5000 sync messages average. Nonetheless: MQL service, if it can provide something better than OnTimer(), maybe simply while (true) { if (server.Listen()) .... Sleep(0); } that issue would be already be solved.
2. Still the thing with the transferred data. At the moment it also works without problem, thats why I pointed out I´d be interested to see sth which is more safe in view of possible future changes within MQL.
<<If someone can show me a simple example of how to define/setup a MQL service, I would appreciate it a lot. And, can I do this there?
If someone can show me a simple example of how to define/setup a MQL service, I would appreciate it a lot. And, can I do this there?
What is the minimum delay taken into account in ontimer?
What is your desired delay ?
What is the minimum delay taken into account in ontimer?
Do I need to use a timer?
It seems to me that you have a shared space where the threads are consolidated (semaphore)
Put a bool in place, why not one with a modulo so as not to overload the process, 1 every 10....
the 1 ms ontimer is no longer a trigger, but a limiter of 1 ms max delay, a security which allows to reset the flag, if it was not updated in the semaphore
SO
It seems to me that you have a shared space where the threads are consolidated (semaphore)
Put a bool in place, why not one with a modulo so as not to overload the process, 1 every 10....
the 1 ms ontimer is no longer a trigger, but a limiter of 1 ms max delay, a security which allows to reset the flag, if it was not updated in the semaphore
I try to decrypt your message :D
So you have in mind, that I use OnTimer() within the service to rather take care of that a semaphore is not blocked instead of using the OnTimer() to trigger the servers action?
And with semaphore you don´t mean a system-semaphore, rather a bool var in MQL?
---
Just to explain: The MQL side doesn´t have to take care of any blockings, thats all done in the DLL-bridge. What I have to do in MQL is kind of like:
No need to worry bout any semaphores or mutexes or deadlocks.
So what exactly did you have in mind?
I must not have understood the problem
It seemed to me that you wanted to process a volume of data that changes very often, more than 5,000 data every 1 ms.
That this processing could not be done at each change (1 ms / 5,000 is too short) but at least every 1 ms
I must not have understood the problem
It seemed to me that you wanted to process a volume of data that changes very often, more than 5,000 data every 1 ms.
That this processing could not be done at each change (1 ms / 5,000 is too short) but at least every 1 ms
Still only:
>>
1. The restriction within OnTimer(), while is not that big deal, since it mainly affects the ping-time. Once its reached, further messages can be handled instantly after this first access - <>5000 sync messages average. Nonetheless: MQL service, if it can provide something better than OnTimer(), maybe simply while (true) { if (server.Listen()) .... Sleep(0); } that issue would be already be solved.
2. Still the thing with the transferred data. At the moment it also works without problem, thats why I pointed out I´d be interested to see sth which is more safe in view of possible future changes within MQL.
<<If someone can show me a simple example of how to define/setup a MQL service, I would appreciate it a lot. And, can I do this there?