Services. Are they up and running yet? - page 3

 
Konstantin Nikitin:

By the way, you can compile for 4 in MQL5, but sometimes you can get a glitch. So it's better to compile all the same.

I have been compiling everything with the same compiler for 2 years now.

What kind of glitch can you get?

 
BillionerClub:

I would like to know first-hand what OnStart is and how it differs from OnTick ?

Please learn to look at the site menu. Simple - lift your eyes and see the menu, where the second menu item is Documentation. You can use the search engine - there is an icon on the top-left. Type in a search query and you'll get a result. On the left side of the search results page you can select the sections where you want to see the search results.

Документация по MQL5: Обработка событий / OnStart
Документация по MQL5: Обработка событий / OnStart
  • www.mql5.com
Вызывается в скрипте при наступлении события Start. Функция предназначена для однократного выполнения действий, заложенных в скрипт. Существуют два варианта функции. После завершения скрипта в журнале терминала будет создана запись вида "script имя_скрипта removed (result code N)", где N и есть то значение, которое вернула функция OnStart...
 
Artyom Trishkin:

Please learn to look at the website menu. It's easy to look up and see the menu, where the second menu item is Documentation. You can do a search - there is a familiar icon on the top-left. Type in a search query and you'll get a result. On the left side of the search results page you can select the sections where you want to see the search results.

There's also a miracle like this.

int start()
 
BillionerClub:

There's also a miracle like this

This is an old function - an atavism from the old mql4. Forget it.

 
fxsaber:

The lack of an event model when working with datafeeds looks like a crutch.

As an example of such a crutch, consider the current implementation of formula symbols - based not on event model, but on a timer (loop). Hence, there are skipping of ticks.


Earlier it was said about multisymbol OnTick in Services. Why have they abandoned and slashed good ideas like that?

The services run continuously, communicating with the terminal via a special task queue. We will disclose the tasks later.

Services are not experts and are not chart/timer/price event handlers. Event models are not needed for continuous processes, the point of which is never to be interrupted and not to depend on accounts/servers.

The services are functionally separated from the experts on purpose, so that people do not create Frankenshines. Services have their own area of application.

 
Vladislav Andruschenko:

I've been compiling everything from the same compiler for 2 years now. no glitches.

What kind of glitch can you get?

The compiler is the same, you can use the same ones for both languages.

 
Vladislav Andruschenko:

I've been compiling everything from the same compiler for 2 years now. no glitches.

What kind of glitch can you get?

At least now I have found the difference in the files.

MQL5

MQL4

As you can see this error is fixed in 4, but 5 probably forgot about it. I have also caught something, but I cannot recall it now.

 
Konstantin Nikitin:

At least now I've found the difference in the files.

MQL5

MQL4

The error seems to have been fixed in 4. In 5 it seems they forgot about it. I've caught it somewhere else, but I do not remember it now.


There is only one compiler, isn't there?

I haven't seen any glitches.

It's just that when you name a file with an extension - the version is automatically switched as well.


Maybe you are talking about different functionality of the languages?

Renat Fatkhullin:

The compiler is the same, you can use the same ones for both languages.

 
Services have only just appeared, and you can't do almost anything ))
 
Renat Fatkhullin:

There will be no OnTimer or OnTick in services. Only OnStart.

This is a special type of program for background looping processes (datafeeds, analytics, external links, etc.), not a replacement for EA.


Beta 1963 is out, you can update via the menu.

And it is not fixed: descending sorting in navigator