Artikel 100: https://www.mql5.com/en/articles/100

 

Hier steht geschrieben:
Once there is a new tick, it will return to the fist code line of the OnTick() function. And all the values of our variables/expression will now be reset because this is a new tick except if any of them is declared as a static variable."

Was hat Prio: Code oder Tick? Wird der Code pro OnTick-Event durchgearbeitet oder wird bei einem neuen OnTick-Event abgebrochen und an den Anfang gesprungen?

c

 
Christian Linden:

Hier steht geschrieben:
Once there is a new tick, it will return to the fist code line of the OnTick() function. And all the values of our variables/expression will now be reset because this is a new tick except if any of them is declared as a static variable."

Was hat Prio: Code oder Tick? Wird der Code pro OnTick-Event durchgearbeitet oder wird bei einem neuen OnTick-Event abgebrochen und an den Anfang gesprungen?

c

OnTick wird bis zum return abgearbeitet und bei nächsten Tick erneut aufgerufen. Zwischenzeitlich aufgetretene Ticks werden ignoriert.

 
Carl Schreiber:

OnTick wird bis zum return abgearbeitet und bei nächsten Tick erneut aufgerufen. Zwischenzeitlich aufgetretene Ticks werden ignoriert.

alles klar, so macht's Sinn, danke