Communicating with an api/custom server using a HTTP request inside of .mq5 indicator code - page 2

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
Yes, but did I not say "... instead have a loop to keep it running indefinitely until some condition signals it to end its execution "?
When you code a service, you have to use a "loop" to keep it running. In essence a service and a script behave basically the same, but to keep a service alive and running you have to use a loop.
Unfortunately, I don't know of any example of a service in the CodeBase in order to provide you with an example.
As for "how to execute service from indicator or ea", you can't as far as I know, unless you use DLL calls to the Windows API.
Thank again Fernando Carreiro . You my hero.
Now i know that i have to use loop to handle service by my self.