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

 
Fernando Carreiro #:

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. 

Fernando Carreiro
Fernando Carreiro
  • 2022.11.03
  • www.mql5.com
Trader's profile
Reason: