Download MetaTrader 5

Thread model in MT5

To add comments, please log in or register


does someone know the thread policy of MT5?

Say the programm calls OnTick(), does this mean that this event is locked for other events until it finishes?

Or say you have 5 custom indicators and so you have 5 OnCalculate() methods defined.

Is it garantueed that all events can perform until the method is exited?

If not, how can one synchronize results for a calculation if these results are needed for other program modules?

Thanks for advice, Juergen

Step on New Rails: Custom Indicators in MQL5
  • 2009.11.23
  • Андрей
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.
To add comments, please log in or register